/[usata]/usata2/src/main.cpp
ViewVC logotype

Diff of /usata2/src/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by skunix, Sun Dec 26 09:59:13 2004 UTC revision 1.20 by Descender, Sun Dec 26 18:36:42 2004 UTC
# Line 11  Line 11 
11  // http://www.fsf.org/licenses/gpl.html.  // http://www.fsf.org/licenses/gpl.html.
12  //  //
13  // $Id$  // $Id$
 // $Log$  
 // Revision 1.19  2004/12/26 09:59:13  skunix  
 // added base exceptions  
 //  
 // Revision 1.18  2004/12/26 09:35:23  skunix  
 // use logging functionality  
 //  
 // Revision 1.17  2004/12/26 08:34:20  skunix  
 // added getting logging prefixes from config  
 //  
 // Revision 1.16  2004/12/26 08:03:34  skunix  
 // changed lambda::bind's to boost::binds  
 //  
 // Revision 1.15  2004/12/26 02:26:18  Descender  
 //  
 // New logging functionality.  
 //  
 // Revision 1.14  2004/12/22 23:35:19  Descender  
 //  
 // Fix license headers  
 //  
14    
15  #include <string>  #include <string>
16  #include <iostream>  #include <iostream>
# Line 117  int main(int argc, char **argv) Line 96  int main(int argc, char **argv)
96          // load config          // load config
97          ConfigSection csection("config");          ConfigSection csection("config");
98                    
99          log::Stream2 logstream;          log::BufferedStream logstream;
100          std::string cfile = csection.get("filename",get_default_config_file());          std::string cfile = csection.get("filename",get_default_config_file());
101          load_config(cfile);          load_config(cfile);
102          op_conf->value_export(get_configuration());          op_conf->value_export(get_configuration());
103          op_conf.reset();          op_conf.reset();
104          setup_log();          setup_log();
105          logstream << boost::format("Loaded config file \"%1%\"") % cfile << log::Commit;          logstream << boost::format("Loaded config file \"%1%\"") % cfile << log::commit;
106          // then export op_conf          // then export op_conf
107    
108          try          try

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26