MaMiCo 1.2
|
#include <ParseConfiguration.h>
Classes | |
class | XMLConfiguration |
Static Public Member Functions | |
template<class Configuration> | |
static void | parseConfiguration (const std::string filename, const std::string topleveltag, Configuration &config) |
static void | readDoubleMandatory (double &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readDoubleOptional (double &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readIntMandatory (int &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readIntOptional (int &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readBoolMandatory (bool &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readBoolOptional (bool &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readStringMandatory (std::string &storage, tinyxml2::XMLElement *node, std::string tag) |
static void | readStringOptional (std::string &storage, tinyxml2::XMLElement *node, std::string tag) |
template<unsigned int size, class T> | |
static void | readVector (tarch::la::Vector< size, T > &result, const char *myText) |
template<unsigned int size, class T> | |
static void | readVectorMandatory (tarch::la::Vector< size, T > &result, tinyxml2::XMLElement *node, std::string tag) |
template<unsigned int size, class T> | |
static void | readVectorOptional (tarch::la::Vector< size, T > &result, tinyxml2::XMLElement *node, std::string tag) |
interface for configuration using tinyxml2
|
inlinestatic |
parses an xml configuration file, and stores the information in the object config
Configuration |
|
inlinestatic |
reads a bool value at node "node" with tag "tag" and stores the result in "storage". the program is exited if the value cannot be read.
storage | |
node | |
tag |
|
inlinestatic |
reads a bool value at node "node" with tag "tag" and stores the result in "storage". the program continues and only stores the result in "storage" if "tag" is existent
storage | |
node | |
tag |
|
inlinestatic |
reads a double value at node "node" with tag "tag" and stores the result in "storage". the program is exited if the value cannot be read.
storage | |
node | |
tag |
|
inlinestatic |
reads a double value at node "node" with tag "tag" and stores the result in "storage". the program continues and only stores the result in "storage" if "tag" is existent
storage | |
node | |
tag |
|
inlinestatic |
reads a int value at node "node" with tag "tag" and stores the result in "storage". the program is exited if the value cannot be read.
storage | |
node | |
tag |
|
inlinestatic |
reads a int value at node "node" with tag "tag" and stores the result in "storage". the program continues and only stores the result in "storage" if "tag" is existent
storage | |
node | |
tag |
|
inlinestatic |
reads a string value at node "node" with tag "tag" and stores the result in "storage". the program is exited if the value cannot be read.
storage | |
node | |
tag |
|
inlinestatic |
reads a string value at node "node" with tag "tag" and stores the result in "storage". the program continues and only stores the result in "storage" if "tag" is existent
storage | |
node | |
tag |
|
inlinestatic |
reads with ";"-separated entry "tag" with "size" entries and returns the corresponding vector on success
T | Data type |
Size | size of the entry |
result | |
myText |
|
inlinestatic |
reads with ";"-separated entry "tag" with "size" entries and returns the corresponding vector on success
T | Data type |
Size | size of the entry |
result | |
node | |
tag |
|
inlinestatic |
reads with ";"-separated entry "tag" with "size" entries and returns the corresponding vector on success if "tag" is existent
T | Data type |
Size | size of the entry |
result | |
node | |
tag |