1 #ifndef CONFIGURATION_H_
2 #define CONFIGURATION_H_
6 #include <boost/program_options.hpp>
8 using namespace boost::program_options;
12 namespace AP_LSystem {
39 options_description description;
40 variables_map globalProperties;
41 std::vector<variables_map> lsystemProperties;
42 std::map<std::string, int> lsystemNameMap;
59 bool loadCfgFile(
string filename);
65 void setProperty(
const string & prop);
72 void setProperty(
const string & lsystemID,
const string & prop);
80 void setProperty(
const string & lsystemID,
const string & prop,
const string & value);
87 const int getLSystemIndex(
const string & lsystemID );
93 const int getLSystemCount();
100 const variable_value * getProperty(
const string & prop);
108 const variable_value * getProperty(
const string & lsystemID,
const string & prop);
117 const variable_value * getProperty(
const unsigned int lsystemIndex,
const string & prop);
128 const void writeAll( std::basic_ostream<char> &,
const string & );