mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Implementation of An application configuration manager. More...
Implementation of An application configuration manager.
Definition in file appConfigurator.cpp.
Go to the source code of this file.
Namespaces | |
mx | |
The mxlib c++ namespace. | |
Functions | |
void | mx::app::writeConfigFile (const std::string &fname, const std::vector< std::string > §ions, const std::vector< std::string > &keywords, const std::vector< std::string > &values) |
A simple config file writing function, useful for testing. More... | |
void mx::app::writeConfigFile | ( | const std::string & | fname, |
const std::vector< std::string > & | sections, | ||
const std::vector< std::string > & | keywords, | ||
const std::vector< std::string > & | values | ||
) |
A simple config file writing function, useful for testing.
Write a config file to the path specified by fname
. Each of the parameters is a vector, and each component is required of each vector.
Example:
results in the file ‘/tmp/test.conf’ containing
key0=val0 key1=val1 [sect1] key2=val2 key3=val3 [sect2] key4=val4 key5=val5 *
No error checking is done.
[in] | fname | the complete path for the output file. |
[in] | sections | sections, one per config value |
[in] | keywords | keywords, one per config value |
[in] | values | the values |
Definition at line 1000 of file appConfigurator.cpp.
References mx::app::writeConfigFile().
Referenced by SCENARIO(), and mx::app::writeConfigFile().