- Timestamp:
- Dec 10, 2007, 3:40:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/core/ConfigValueContainer.h
r447 r450 18 18 #include <string> 19 19 #include <list> 20 21 #include "OgreVector2.h" 20 22 #include "OgreVector3.h" 21 23 #include "OgreColourValue.h" … … 46 48 ConfigValueContainer(const std::string& classname, const std::string& varname, bool defvalue); 47 49 ConfigValueContainer(const std::string& classname, const std::string& varname, const char* defvalue); 50 ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector2 defvalue); 48 51 ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector3 defvalue); 49 52 ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::ColourValue defvalue); … … 67 70 /** @returns the value of the type std::string. @param value This is only needed to determine the right type. */ 68 71 inline std::string getValue(const std::string& value) { return this->value_string_; } 72 /** @returns the value of the type Vector2. @param value This is only needed to determine the right type. */ 73 inline Ogre::Vector2 getValue(const Ogre::Vector2& value) { return this->value_vector2_; } 69 74 /** @returns the value of the type Vector3. @param value This is only needed to determine the right type. */ 70 75 inline Ogre::Vector3 getValue(const Ogre::Vector3& value) { return this->value_vector3_; } … … 81 86 bool value_bool_; //!< The value, if the variable is of the type bool 82 87 std::string value_string_; //!< The value, if the variable is of the type string 88 Ogre::Vector2 value_vector2_; //!< The value, if the variable is of the type Vector2 83 89 Ogre::Vector3 value_vector3_; //!< The value, if the variable is of the type Vector3 84 90 Ogre::ColourValue value_colourvalue_; //!< The value, if the variable is of the type ColourValue
Note: See TracChangeset
for help on using the changeset viewer.