Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

c_conf Class Reference

Stores parsed "conf.txt" file. More...

#include <c_conf.h>

Collaboration diagram for c_conf:

List of all members.

Public Member Functions

 c_conf ()
 c_conf (const c_conf &orig)
void clear ()
my_time_t get_eval_script_timeout ()
unsigned get_eval_stack_size ()
string getvar (const string &key)
 Gets variable from conf.txt configuration file.
long long getvar_int (const string &key)
 Gets variable from conf.txt configuration file (as an integer).
bool init (const string &file_name, c_logger *logger, bool is_core)
 Rehashes, and re-reads conf.txt configuration file into keys variable and sets init to true.
bool log_echo_bot ()
bool log_echo_botnet ()
bool log_echo_botnet_debug ()
bool log_echo_broadcast ()
bool log_echo_clients ()
bool log_echo_debug ()
bool log_echo_identd ()
bool log_echo_irc ()
bool log_echo_socket ()
bool log_echo_ssl ()
bool log_log_bot ()
bool log_log_botnet ()
bool log_log_botnet_debug ()
bool log_log_broadcast ()
bool log_log_clients ()
bool log_log_debug ()
bool log_log_identd ()
bool log_log_irc ()
bool log_log_socket ()
bool log_log_ssl ()
bool rehash ()
 Loads conf.txt configuration file.

Static Public Member Functions

static string convert_old_time_offset_if_needed (const string &orig)

Private Member Functions

void rehash_magicks ()
 Rehasesh cached keys (frequently used keys; for optimization).

Private Attributes

my_time_t eval_script_timeout
 "eval_script_timeout" key value
unsigned eval_stack_size
 "eval_stack_size" key value
string fn
 Name of file.
bool init_ok
 If initialization was okay.
bool is_core_conf
 true if this config is for core module
map< string, string > keys
 First: key, second: value.
bool log_bot_
 "log_bot" key value
bool log_botnet_
 "log_botnet" key value
bool log_botnet_debug_
 "log_botnet_debug" key value
bool log_broadcast_
 "log_broadcast" key value
bool log_clients_
 "log_clients" key value
bool log_debug_
 "log_debug" key value
bool log_echo_bot_
 "log_echo_bot" key value
bool log_echo_botnet_
 "log_echo_botnet" key value
bool log_echo_botnet_debug_
 "log_echo_botnet_debug" key value
bool log_echo_broadcast_
 "log_echo_broadcast" key value
bool log_echo_clients_
 "log_echo_clients" key value
bool log_echo_debug_
 "log_echo_debug" key value
bool log_echo_identd_
 "log_echo_ident" key value
bool log_echo_irc_
 "log_echo_irc" key value
bool log_echo_socket_
 "log_echo_socket" key value
bool log_echo_ssl_
 "log_echo_ssl" key value
bool log_identd_
 "log_ident" key value
bool log_irc_
 "log_irc" key value
bool log_socket_
 "log_socket" key value
bool log_ssl_
 "log_ssl" key value
c_loggerlogger_
 Logger for this module.
bool parsed
 If we were parsed it.

Detailed Description

Stores parsed "conf.txt" file.

Author:
VooDooMan
Version:
1
Date:
2005

Definition at line 65 of file c_conf.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:28:14 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads