Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 2:52:59 PM (14 years ago)
Author:
dafrick
Message:

xmlElement → xmlelement

Location:
code/trunk/src/modules/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/objects/Script.cc

    r7406 r7407  
    7373    @brief
    7474        Method for creating a Script object through XML.
    75     @param xmlElement
     75    @param xmlelement
    7676        The element.
    7777    @param mode
    7878        The mode.
    7979    */
    80     void Script::XMLPort(Element& xmlElement, XMLPort::Mode mode)
     80    void Script::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    8181    {
    8282        SUPER(Script, XMLPort, xmlElement, mode);
    8383
    84         XMLPortParam(Script, "code", setCode, getCode, xmlElement, mode);
    85         XMLPortParamTemplate(Script, "mode", setMode, getMode, xmlElement, mode, const std::string&).defaultValues(Script::NORMAL);
    86         XMLPortParam(Script, "onLoad", setOnLoad, isOnLoad, xmlElement, mode).defaultValues(true);
    87         XMLPortParam(Script, "times", setTimes, getTimes, xmlElement, mode).defaultValues(Script::INF);
    88 
    89         XMLPortEventSink(Script, BaseObject, "trigger", trigger, xmlElement, mode);
     84        XMLPortParam(Script, "code", setCode, getCode, xmlelement, mode);
     85        XMLPortParamTemplate(Script, "mode", setMode, getMode, xmlelement, mode, const std::string&).defaultValues(Script::NORMAL);
     86        XMLPortParam(Script, "onLoad", setOnLoad, isOnLoad, xmlelement, mode).defaultValues(true);
     87        XMLPortParam(Script, "times", setTimes, getTimes, xmlelement, mode).defaultValues(Script::INF);
     88
     89        XMLPortEventSink(Script, BaseObject, "trigger", trigger, xmlelement, mode);
    9090
    9191        if(this->isOnLoad()) // If the object is onLoad the code is executed at once.
     
    9696    @brief
    9797        Creates a port that can be used to channel events and react to them.
    98     @param xmlElement
     98    @param xmlelement
    9999        The element.
    100100    @param mode
    101101        The mode.
    102102    */
    103     void Script::XMLEventPort(Element& xmlElement, XMLPort::Mode mode)
     103    void Script::XMLEventPort(Element& xmlelement, XMLPort::Mode mode)
    104104    {
    105105        SUPER(Script, XMLEventPort, xmlElement, mode);
    106106
    107         XMLPortEventState(Script, BaseObject, "trigger", trigger, xmlElement, mode);
     107        XMLPortEventState(Script, BaseObject, "trigger", trigger, xmlelement, mode);
    108108    }
    109109
  • code/trunk/src/modules/objects/Script.h

    r7406 r7407  
    8383
    8484            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a Script object through XML.
    85             virtual void XMLEventPort(Element& xmlElement, XMLPort::Mode mode); //!< Creates a port that can be used to channel events and react to them.
     85            virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); //!< Creates a port that can be used to channel events and react to them.
    8686
    8787            void trigger(bool triggered); //!< Is called when an event comes in trough the event port.
Note: See TracChangeset for help on using the changeset viewer.