Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 19, 2006, 5:49:58 PM (18 years ago)
Author:
bensch
Message:

compiles again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/load_param_description.h

    r9764 r9765  
    1515
    1616/*!
    17  * @file load_param.h
     17 * @file load_param_description.h
    1818 * A Class and macro-functions, that makes our lives easy to load-in parameters
    1919 */
     
    2222#define _LOAD_PARAM_DESCRIPTION_H
    2323
    24 #include <list>
     24#include <vector>
    2525#include <string>
    2626
     
    3434class LoadParamDescription
    3535{
    36   friend class LoadParam;
    37   friend class LoadClassDescription;
    3836public:
    3937  LoadParamDescription(const std::string& paramName);
    4038  ~LoadParamDescription();
     39
     40  bool operator==(const std::string& paramName) const { return this->name == paramName; };
     41  bool operator==(const LoadParamDescription& paramDescr) const { return this->name == paramDescr.name; };
     42  bool operator<(const LoadParamDescription& paramDescr) const { return this->name < paramDescr.name; };
    4143
    4244  void setDescription(const std::string& descriptionText);
     
    4749
    4850private:
     51  const std::string          name;                  //!< The Name of the Parameter.
     52  unsigned int               parameterCount;        //!< The Count of parameters.
    4953  std::string                description;           //!< A longer description about this function.
    5054
    51   std::vector<std::string>   parameters;
     55  std::vector<std::string>   types;
    5256  std::vector<std::string>   defaultValues;
    5357
    5458};
    5559
    56 
    57 
    58 
    59 //! A class for descriptions of a loadable module
    60 class LoadClassDescription
    61 {
    62   friend class LoadParamBase;
    63 public:
    64   LoadClassDescription(const std::string& className);
    65   ~LoadClassDescription();
    66 
    67   static LoadClassDescription* addClass(const std::string& className);
    68   LoadParamDescription* addParam(const std::string& paramName);
    69 
    70   static void deleteAllDescriptions();
    71 
    72   static void printAll(const std::string& fileName = "");
    73   static std::list<std::string> searchClassWithShort(const std::string& classNameBegin);
    74   //  static const LoadParamDescription* getClass(const std::string& className);
    75 
    76 private:
    77   static bool                                  parametersDescription;  //!< if parameter-description should be enabled.
    78   static std::vector<LoadClassDescription*>*   classList;              //!< a list, that stores all the loadable classes. (after one instance has been loaded)
    79   std::string                                  className;              //!< name of the class
    80 
    81   std::vector<LoadParamDescription*>           paramList;              //!< List of parameters this class knows.
    82 };
    83 
    8460#endif /* _LOAD_PARAM_DESCRIPTION_H */
Note: See TracChangeset for help on using the changeset viewer.