/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Benjamin Grauer co-programmer: ... */ /*! * @file load_param_description.h * A Class and macro-functions, that makes our lives easy to load-in parameters */ #ifndef _LOAD_PARAM_DESCRIPTION_H #define _LOAD_PARAM_DESCRIPTION_H #include #include // Forward Declaration // class MultiType; /************************ *** DESCRIPTION STUFF *** ************************/ //! A class that handles the description of loadable parameters class LoadParamDescription { public: LoadParamDescription(const std::string& paramName); ~LoadParamDescription(); bool operator==(const std::string& paramName) const { return this->_name == paramName; }; bool operator==(const LoadParamDescription& paramDescr) const { return this->_name == paramDescr._name; }; bool operator<(const LoadParamDescription& paramDescr) const { return this->_name < paramDescr._name; }; void setDescription(const std::string& descriptionText); /** @returns the descriptionString */ const std::string& description() { return this->_description; }; void print() const; private: const std::string _name; //!< The Name of the Parameter. unsigned int _parameterCount; //!< The Count of parameters. std::string _description; //!< A longer description about this function. std::vector _types; std::vector _defaultValues; }; #endif /* _LOAD_PARAM_DESCRIPTION_H */