diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 23c5e7d57e1e9216f4da3446656df2dc7202975d (patch) | |
| tree | b387afc4ad6acad4681252df8ce8def5dc8aa54d /conf.cpp | |
| parent | 9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (diff) | |
tagging ychat-0.1ychat-0.1
Diffstat (limited to 'conf.cpp')
| -rw-r--r--[-rwxr-xr-x] | conf.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -1,26 +1,36 @@ // class conf implementation. -#ifndef s_conf_CXX -#define s_conf_CXX +#ifndef CONF_CXX +#define CONF_CXX #include <fstream> #include "conf.h" using namespace std; -conf::conf( string s_conf = s_confILE ) : name( s_conf ) +conf::conf( string s_conf = CONFILE ) : name( s_conf ) { +#ifdef VERBOSE + cout << "conf::conf()" << endl; +#endif + parse( ); // parse the config file. } conf::~conf() { +#ifdef VERBOSE + cout << "conf::~conf()" << endl; +#endif } void conf::parse() { -#ifdef VERBOSE +#ifdef VERBOSE_ + cout << "conf::parse()" << endl; +#endif +#ifdef _VERBOSE cout << CFILEOK << get_name() << endl; #endif @@ -28,7 +38,7 @@ conf::parse() if ( ! fs_conf ) { -#ifdef VERBOSE +#ifdef _VERBOSE cout << CFILENO << get_name() << endl; #endif return; |
