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_class_description.h

    r9764 r9765  
    1515
    1616/*!
    17  * @file load_param.h
     17 * @file load_param_class_description.h
    1818 * A Class and macro-functions, that makes our lives easy to load-in parameters
    1919 */
    2020
    21 #ifndef _LOAD_PARAM_DESCRIPTION_H
    22 #define _LOAD_PARAM_DESCRIPTION_H
     21#ifndef _LOAD_PARAM_CLASS_DESCRIPTION_H
     22#define _LOAD_PARAM_CLASS_DESCRIPTION_H
    2323
    24 #include <list>
    25 #include <string>
     24#include "load_param_description.h"
     25#include <set>
    2626
    2727// Forward Declaration //
    2828class MultiType;
    2929
    30 /************************
    31 *** DESCRIPTION STUFF ***
    32 ************************/
    33 //! A class that handles the description of loadable parameters
    34 class LoadParamDescription
     30//! A class for descriptions of a loadable module
     31class LoadParamClassDescription
    3532{
    36   friend class LoadParam;
    37   friend class LoadClassDescription;
    3833public:
    39   LoadParamDescription(const std::string& paramName);
    40   ~LoadParamDescription();
     34  LoadParamClassDescription(const std::string& className);
     35  ~LoadParamClassDescription();
    4136
    42   void setDescription(const std::string& descriptionText);
    43   /** @returns the descriptionString */
    44   const std::string& getDescription() { return this->description; };
     37  bool operator==(const std::string& className) const { return this->className == className; };
     38  bool operator==(const LoadParamClassDescription& classDescr) const { return this->className == classDescr.className; };
     39  bool operator<(const LoadParamClassDescription& classDescr) const { return this->className < classDescr.className; }
    4540
    46   void print() const;
    47 
    48 private:
    49   std::string                description;           //!< A longer description about this function.
    50 
    51   std::vector<std::string>   parameters;
    52   std::vector<std::string>   defaultValues;
    53 
    54 };
    55 
    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);
     41  static LoadParamClassDescription* addClass(const std::string& className);
    6842  LoadParamDescription* addParam(const std::string& paramName);
    6943
     
    7549
    7650private:
     51  typedef std::set<LoadParamClassDescription>  ClassDescriptionSet;
     52  typedef std::set<LoadParamDescription>       ParamDescriptionSet;
     53
    7754  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)
     55  static ClassDescriptionSet*                  classList;              //!< a list, that stores all the loadable classes. (after one instance has been loaded)
    7956  std::string                                  className;              //!< name of the class
    8057
    81   std::vector<LoadParamDescription*>           paramList;              //!< List of parameters this class knows.
     58  ParamDescriptionSet                          parameters;              //!< List of parameters this class knows.
    8259};
    8360
    84 #endif /* _LOAD_PARAM_DESCRIPTION_H */
     61#endif /* _LOAD_PARAM_CLASS_DESCRIPTION_H */
Note: See TracChangeset for help on using the changeset viewer.