Back to index

natlog  0.91.0
options1.cc
Go to the documentation of this file.
00001 #include "options.ih"
00002 
00003 // at this time we're not running as a daemon, and all messages are sent to
00004 // cout
00005 
00006 Options::Options()
00007 :
00008     d_arg(ArgConfig::instance())
00009 {
00010     openConfig();
00011 
00012     if (not d_arg.option(&d_conntrackPath, "conntrack-path"))
00013         d_conntrackPath = s_defaultConntrackPath;
00014 
00015     
00016     setSyslogParams();
00017 
00018     setBoolMembers();
00019 
00020     string value;
00021     if (not d_arg.option(&value, 't'))
00022         d_time = s_time.find("raw");
00023     else 
00024         setTime(value);
00025 }
00026 
00027 
00028 
00029 
00030