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

    r9770 r9771  
    9292
    9393protected:
    94   void describe(const ClassID& id, const std::string& descriptionText);
     94  void describe(const ClassID& classID, const std::string& descriptionText);
     95  void setDescriptionValues(const ClassID& classID, unsigned int paramCount, const MultiType* const defaultValues, bool retVal = false);
    9596
    96 private:
    97   const std::string& grabParameter(const TiXmlElement* root, const std::string& parameterName);
    98   const TiXmlElement* grabParameterElement(const TiXmlElement* root, const std::string& parameterName);
    99 
     97public:
     98  static std::string grabParameter(const TiXmlElement* root, const std::string& parameterName);
     99  static const TiXmlElement* grabParameterElement(const TiXmlElement* root, const std::string& parameterName);
    100100
    101101protected:
     
    112112public:
    113113  /**
    114    * @brief generates a LoadParam based on
    115    * @param root the Root Element to load onto the object.
    116    * @param paramName the Parameter name that is loaded.
    117    * @param object the Object to apply the changes on.
    118    * @param executor the Functional Object, that actually executes the function Call.
     114   * @brief generates a LoadParam based on:
     115   * @param root the Root Element to load onto the object. @param paramName the Parameter name that is loaded.
     116   * @param object the Object to apply the changes on. @param executor the Functional Object, that actually executes the function Call.
    119117   * @param inLoadCycle If we are inside of a loading cycle. (Loading will be different here)
    120118   */
     
    139137      }
    140138    }
     139    this->setDescriptionValues(OperateClass::staticClassID(), executor->getParamCount(), executor->getDefaultValues(), executor->hasRetVal());
    141140    delete this->executor;
    142141  }
     
    159158};
    160159
    161 // helper function
    162 
    163 
    164160#endif /* _LOAD_PARAM_H */
Note: See TracChangeset for help on using the changeset viewer.