Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2008, 2:20:56 AM (17 years ago)
Author:
landauf
Message:

changed ConfigValueContainer to use MultiTypeMath::assimilate and fixed a small bug, causing a segfault if the default-value was a vector with size zero.

File:
1 edited

Legend:

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

    r1313 r1321  
    100100            const std::string& getDescription() const;
    101101
    102             bool add(const std::string& input);
     102            bool set(const MultiTypeMath& input);
     103            bool tset(const MultiTypeMath& input);
     104
     105            bool set(unsigned int index, const MultiTypeMath& input);
     106            bool tset(unsigned int index, const MultiTypeMath& input);
     107            bool add(const MultiTypeMath& input);
    103108            bool remove(unsigned int index);
    104             bool set(const std::string& input);
    105             bool tset(const std::string& input);
     109
    106110            bool reset();
    107111            void update();
    108 
    109             bool parse(const std::string& input);
    110             bool parse(const std::string& input, const MultiTypeMath& defvalue);
    111 
    112             bool set(unsigned int index, const std::string& input);
    113             bool tset(unsigned int index, const std::string& input);
    114             bool parse(unsigned int index, const std::string& input);
    115             bool parse(unsigned int index, const std::string& input, const MultiTypeMath& defvalue);
    116112
    117113            /** @brief Converts the config-value to a string. @return The string */
     
    123119
    124120        private:
     121            bool callFunctionWithIndex(bool (ConfigValueContainer::* function) (unsigned int, const MultiTypeMath&), const std::string& input);
     122
    125123            bool                       bIsVector_;                  //!< True if the container contains a std::vector
    126124
Note: See TracChangeset for help on using the changeset viewer.