Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 4:39:06 PM (16 years ago)
Author:
landauf
Message:

changed ConfigValueContainer to use ConfigFileManager, but there is still an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/core/ConfigValueContainer.h

    r972 r1020  
    5050#include "util/Math.h"
    5151#include "util/MultiTypeMath.h"
     52#include "ConfigFileManager.h"
    5253
    5354namespace orxonox
     
    7273    {
    7374        public:
    74             ConfigValueContainer(Identifier* identifier, const std::string& varname, MultiTypeMath defvalue);
     75            ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, MultiTypeMath defvalue);
    7576
    7677            /** @brief Returns the configured value. @param value This is only needed to determine the right type. @return The value */
     
    8889            bool tset(const std::string& input);
    8990            bool reset();
     91            void update();
    9092
    9193            /** @brief Converts the config-value to a string. @return The string */
     
    9799
    98100        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 
    104101            bool parse(const std::string& input);
    105102            bool parse(const std::string& input, const MultiTypeMath& defvalue);
     
    107104            void setLineInConfigFile(const std::string& input);
    108105            void resetLineInConfigFile();
    109             void searchLineInConfigFile();
    110106
    111             std::string parseValueStringFromConfigFile(bool bStripped = true);
    112 
    113             Identifier*         identifier_;                    //!< The name of the class the variable belongs to
     107            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
    114110            std::string         varname_;                       //!< The name of the variable
    115111            std::string         defvalueString_;                //!< The string of the default-variable
Note: See TracChangeset for help on using the changeset viewer.