![]() |
config.h File Reference#include <map> #include <string> Include dependency graph for config.h: ![]() This graph shows which files directly or indirectly include this file: ![]() Go to the source code of this file.
Typedef Documentation
Function Documentation
Definition at line 80 of file config.cpp. References config, read_config(), and write_config(). Referenced by main(). 00081 { 00082 read_config( filename ); 00083 for (int i = 1; i < argc; i++) 00084 if (argv[i][0] == '-' && i < argc - 1) 00085 { 00086 config[argv[i] + 1] = argv[i + 1]; 00087 i++; 00088 } 00089 write_config(); // filename ); 00090 }
Definition at line 63 of file config.cpp. References config, and config_filename. Referenced by parse_config(). 00064 { 00065 FILE *fil = fopen(config_filename.c_str(),"wt"); 00066 if (fil) 00067 { 00068 for (config_m::iterator it = config.begin(); it != config.end(); it++) 00069 { 00070 std::string key = (*it).first; 00071 std::string value = (*it).second; 00072 if (key[0] != '.') 00073 fprintf(fil,"%s %s\n",key.c_str(),value.c_str()); 00074 } 00075 fclose(fil); 00076 } 00077 }
Variable Documentation
Definition at line 33 of file config.cpp. Referenced by parse_config(), read_config(), and write_config().
|