- Timestamp:
- Apr 10, 2008, 4:39:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/ConfigValueContainer.h
r972 r1020 50 50 #include "util/Math.h" 51 51 #include "util/MultiTypeMath.h" 52 #include "ConfigFileManager.h" 52 53 53 54 namespace orxonox … … 72 73 { 73 74 public: 74 ConfigValueContainer( Identifier* identifier, const std::string& varname, MultiTypeMath defvalue);75 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, MultiTypeMath defvalue); 75 76 76 77 /** @brief Returns the configured value. @param value This is only needed to determine the right type. @return The value */ … … 88 89 bool tset(const std::string& input); 89 90 bool reset(); 91 void update(); 90 92 91 93 /** @brief Converts the config-value to a string. @return The string */ … … 97 99 98 100 private: 99 static void readConfigFile(const std::string& filename);100 static void writeConfigFile(const std::string& filename);101 static std::list<std::string>& getConfigFileLines();102 static bool finishedReadingConfigFile(bool finished = false);103 104 101 bool parse(const std::string& input); 105 102 bool parse(const std::string& input, const MultiTypeMath& defvalue); … … 107 104 void setLineInConfigFile(const std::string& input); 108 105 void resetLineInConfigFile(); 109 void searchLineInConfigFile();110 106 111 std::string parseValueStringFromConfigFile(bool bStripped = true);112 113 Identifier* identifier_;//!< The name of the class the variable belongs to107 ConfigFileType type_; //!< The type of the corresponding config-file 108 Identifier* identifier_; //!< The identifier of the class 109 std::string sectionname_; //!< The name of the class the variable belongs to 114 110 std::string varname_; //!< The name of the variable 115 111 std::string defvalueString_; //!< The string of the default-variable
Note: See TracChangeset
for help on using the changeset viewer.