Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/branches/new_class_id: even more templates (mostly to safe space)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/load_param_xml.cc

    r9763 r9769  
    1 /*
    2    orxonox - the future of 3D-vertical-scrollers
    3 
    4    Copyright (C) 2004 orx
    5 
    6    This program is free software; you can redistribute it and/or modify
    7    it under the terms of the GNU General Public License as published by
    8    the Free Software Foundation; either version 2, or (at your option)
    9    any later version.
    10 
    11    ### File Specific:
    12    main-programmer: Benjamin Grauer
    13    co-programmer: ...
    14 */
    151
    162#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LOADING
     
    195#include "load_param_description.h"
    206
    21 
    22 /**
    23  * @brief generates a LoadParam based on
    24  * @param root the Root Element to load onto the object.
    25  * @param paramName the Parameter name that is loaded.
    26  * @param object the Object to apply the changes on.
    27  * @param executor the Functional Object, that actually executes the function Call.
    28  * @param inLoadCycle If we are inside of a loading cycle. (Loading will be different here)
    29  */
    30 XmlLoadParam::XmlLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, Executor<const TiXmlElement*>* executor, bool inLoadCycle )
    31     : LoadParamBase(root, paramName, object, inLoadCycle)
    32 {
    33   this->executor = executor;
    34 }
    35 
    36 
    37 XmlLoadParam::~XmlLoadParam()
    38 {
    39   assert(this->object != NULL);
    40 
    41   (*this->executor)(this->object, this->loadElem);
    42 
    43   delete this->executor;
    44 }
Note: See TracChangeset for help on using the changeset viewer.