Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 19, 2006, 11:33:27 PM (18 years ago)
Author:
bensch
Message:

first step in the direction of parameter descriptions… again

File:
1 edited

Legend:

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

    r9768 r9771  
    2323
    2424#include "load_param_description.h"
     25#include "class_id.h"
     26#include <map>
    2527#include <set>
    26 
    2728// Forward Declaration //
    2829class MultiType;
     
    3233{
    3334public:
    34   LoadParamClassDescription(const std::string& className);
     35  LoadParamClassDescription(const std::string& className = "");
    3536  ~LoadParamClassDescription();
    3637
     
    3940  bool operator<(const LoadParamClassDescription& classDescr) const { return this->_className < classDescr._className; }
    4041
     42
     43  static void describeClass(const ClassID& classID,
     44                            const std::string& paramName,
     45                            const std::string& descriptionText);
     46  static void setValuesOf(const ClassID& classID,
     47                          const std::string& paramName,
     48                          unsigned int paramCount,
     49                          const MultiType* const defaultValues,
     50                          bool retVal = false);
     51
    4152  static void deleteAllDescriptions();
    42 
    43 
    4453
    4554  static void printAll(const std::string& fileName = "");
    4655
    4756private:
    48   typedef std::set<LoadParamClassDescription>  ClassDescriptionSet;
    49   typedef std::set<LoadParamDescription>       ParamDescriptionSet;
     57  typedef std::map<ClassID, LoadParamClassDescription>  ClassDescriptionMap;
     58  typedef std::map<std::string, LoadParamDescription>   ParamDescriptionMap;
     59
     60private:
     61  static ParamDescriptionMap::iterator getParamDescription(const ClassID& classID, const std::string& paramName);
     62
     63private:
    5064
    5165  static bool                                  _parametersDescription;  //!< if parameter-description should be enabled globally.
    5266
    53   static ClassDescriptionSet                   _classList;              //!< a list, that stores all the loadable classes. (after one instance has been loaded)
     67  static ClassDescriptionMap                   _classList;              //!< a list, that stores all the loadable classes. (after one instance has been loaded)
    5468
    5569private:
    5670  std::string                                  _className;              //!< name of the class
    57   ParamDescriptionSet                          _parameters;              //!< List of parameters this class knows.
     71  ParamDescriptionMap                          _parameters;             //!< List of parameters this class knows.
    5872};
    5973
Note: See TracChangeset for help on using the changeset viewer.