diff options
Diffstat (limited to 'ychat-0.2/CONF.h')
| -rwxr-xr-x | ychat-0.2/CONF.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ychat-0.2/CONF.h b/ychat-0.2/CONF.h new file mode 100755 index 0000000..f3dc5c9 --- /dev/null +++ b/ychat-0.2/CONF.h @@ -0,0 +1,26 @@ +#ifndef GCON_H +#define GCON_H + +#include "conf.h" + +using namespace std; + +class CONF +{ +private: + static conf* obj; + +public: + static void init() + { + obj = new conf( CONFILE ); + } + + static conf& get() + { + return *obj; + } +}; + + +#endif |
