Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5671 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Nov 21, 2005, 3:50:41 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: renamed class LoadParam to CLoadParam and Macro LoadParamNew to LoadParam

Location:
trunk/src/util/loading
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/load_param.cc

    r5655 r5671  
    3232 * @param executor the Executor, that executes the loading procedure.
    3333 */
    34 LoadParam::LoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle)
     34CLoadParam::CLoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle)
    3535{
    3636  this->paramName = paramName;
     
    6363 * Execution-Conditions are met, they are executed here.
    6464 */
    65 LoadParam::~LoadParam()
     65CLoadParam::~CLoadParam()
    6666{
    6767  if (likely(this->executor != NULL))
     
    8484 * @param ... the default values !! must be at least count parameters!!
    8585 */
    86 LoadParam* LoadParam::defaultValues(unsigned int count, ...)
     86CLoadParam* CLoadParam::defaultValues(unsigned int count, ...)
    8787{
    8888  if (this == NULL)
     
    104104 * @returns a pointer to itself.
    105105*/
    106 LoadParam* LoadParam::describe(const char* descriptionText)
     106CLoadParam* CLoadParam::describe(const char* descriptionText)
    107107{
    108108  if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription())
  • trunk/src/util/loading/load_param.h

    r5655 r5671  
    4545 * @param FUNCTION The function of Class to Load (if you want to call &CLASS::FUNCTION write FUNCTION here).
    4646 */
    47 #define LoadParamNEW(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \
    48          LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), false)
     47#define LoadParam(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \
     48         CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), false)
    4949
    5050#define LoadParam_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \
    51          LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), true)
     51         CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), true)
    5252
    5353#define LoadParamXML(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \
    54          LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false)
     54         CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false)
    5555
    5656#define LoadParamXML_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \
    57          LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true)
     57         CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true)
    5858
    5959
     
    8585**************************/
    8686//! abstract Base class for a Loadable parameter
    87 class LoadParam : public BaseObject
     87class CLoadParam : public BaseObject
    8888{
    8989  public:
    90     LoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle = false);
    91     ~LoadParam();
     90    CLoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle = false);
     91    ~CLoadParam();
    9292
    93     LoadParam* describe(const char* descriptionText);
    94     LoadParam* defaultValues(unsigned int count, ...);
     93    CLoadParam* describe(const char* descriptionText);
     94    CLoadParam* defaultValues(unsigned int count, ...);
    9595
    9696
     
    101101    const char*              paramName;
    102102
    103     LoadClassDescription*    classDesc;            //!< The LoadClassDescription of this LoadParameter
     103    LoadClassDescription*    classDesc;            //!< The LoadClassDescription of this CLoadParameter
    104104    LoadParamDescription*    paramDesc;            //!< The LoadParameterDescription of this LoadParameter
    105105    const char*              loadString;           //!< The string loaded by this LoadParam
  • trunk/src/util/loading/load_param_description.h

    r5655 r5671  
    5656class LoadClassDescription
    5757{
    58   friend class LoadParam;
     58  friend class CLoadParam;
    5959 public:
    6060  LoadClassDescription(const char* className);
Note: See TracChangeset for help on using the changeset viewer.