config_reader.cpp File Reference

#include "config_reader.hpp"
#include "file_tokenizer.hpp"
#include <set>
#include <limits>
#include <stdlib.h>
#include <string.h>

Functions

long long parse_time_number (const char *input)
 converts string to long long, using date sufixes (d,h,m);
long long parse_traffic_number (const char *input)
 converts string to long long, using size sufixes (g,m,k);
std::map< std::string,
config_destination_entry
parse_config (const char *file_name)
 Reads rules from file and returns them.

Function Documentation

std::map<std::string, config_destination_entry> parse_config ( const char *  file_name  ) 

Reads rules from file and returns them.

Parameters:
[in] file_name name of rules file
Returns:
parsed rules

long long parse_time_number ( const char *  input  ) 

converts string to long long, using date sufixes (d,h,m);

long long parse_traffic_number ( const char *  input  ) 

converts string to long long, using size sufixes (g,m,k);


Generated on Thu Oct 22 16:30:59 2009 for Main server by  doxygen 1.5.6