Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/util/loading/load_param_description.h @ 9776

Last change on this file since 9776 was 9776, checked in by bensch, 18 years ago

doxy

File size: 2.1 KB
RevLine 
[4592]1/*
[4250]2   orxonox - the future of 3D-vertical-scrollers
[4233]3
[4250]4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
[4592]16/*!
[9765]17 * @file load_param_description.h
[5129]18 * A Class and macro-functions, that makes our lives easy to load-in parameters
19 */
[4250]20
[5546]21#ifndef _LOAD_PARAM_DESCRIPTION_H
22#define _LOAD_PARAM_DESCRIPTION_H
[4233]23
[9765]24#include <vector>
[9764]25#include <string>
[5129]26
[4251]27// Forward Declaration //
[5556]28class MultiType;
[4251]29
[5332]30/************************
31*** DESCRIPTION STUFF ***
32************************/
33//! A class that handles the description of loadable parameters
34class LoadParamDescription
35{
[7221]36public:
[9771]37  LoadParamDescription(const std::string& paramName = "");
[5332]38
[9776]39  //! Compares a LoadParamDescription with a String.
[9767]40  bool operator==(const std::string& paramName) const { return this->_name == paramName; };
[9776]41  //! Compares two LoadParamDescription
[9767]42  bool operator==(const LoadParamDescription& paramDescr) const { return this->_name == paramDescr._name; };
[9776]43  //! Compares two LoadParamDescription with the less operator
[9767]44  bool operator<(const LoadParamDescription& paramDescr) const { return this->_name < paramDescr._name; };
[9765]45
[7221]46  void setDescription(const std::string& descriptionText);
[9772]47  void setValues(unsigned int paramCount,
48                 const MultiType* const defaultValues,
49                 bool retVal = false);
[5332]50  /** @returns the descriptionString */
[9767]51  const std::string& description() { return this->_description; };
[5332]52
53  void print() const;
[5708]54
[7221]55private:
[9771]56  std::string                _name;                  //!< The Name of the Parameter.
[9767]57  unsigned int               _parameterCount;        //!< The Count of parameters.
58  std::string                _description;           //!< A longer description about this function.
[9764]59
[9776]60  std::vector<std::string>   _types;                 //!< A Vector of types of this Parameter.
61  std::vector<std::string>   _defaultValues;         //!< A Vector of defaultValues of this Parameter.
[5332]62};
63
[5546]64#endif /* _LOAD_PARAM_DESCRIPTION_H */
Note: See TracBrowser for help on using the repository browser.