Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7407 for code


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

xmlElement → xmlelement

Location:
code/trunk/src/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/notifications/NotificationDispatcher.cc

    r7404 r7407  
    7272        Method for creating a NotificationDispatcher object through XML.
    7373    */
    74     void NotificationDispatcher::XMLPort(Element& xmlElement, XMLPort::Mode mode)
     74    void NotificationDispatcher::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    7575    {
    76         SUPER(NotificationDispatcher, XMLPort, xmlElement, mode);
     76        SUPER(NotificationDispatcher, XMLPort, xmlelement, mode);
    7777
    78         XMLPortEventSink(NotificationDispatcher, BaseObject, "trigger", trigger, xmlElement, mode); //TODO: Change BaseObject to MultiTrigger as soon as MultiTrigger is the base of all triggers.
     78        XMLPortEventSink(NotificationDispatcher, BaseObject, "trigger", trigger, xmlelement, mode); //TODO: Change BaseObject to MultiTrigger as soon as MultiTrigger is the base of all triggers.
    7979    }
    8080
    81     void NotificationDispatcher::XMLEventPort(Element& xmlElement, XMLPort::Mode mode)
     81    void NotificationDispatcher::XMLEventPort(Element& xmlelement, XMLPort::Mode mode)
    8282    {
    83         SUPER(NotificationDispatcher, XMLEventPort, xmlElement, mode);
     83        SUPER(NotificationDispatcher, XMLEventPort, xmlelement, mode);
    8484
    85         XMLPortEventState(NotificationDispatcher, BaseObject, "trigger", trigger, xmlElement, mode);
     85        XMLPortEventState(NotificationDispatcher, BaseObject, "trigger", trigger, xmlelement, mode);
    8686    }
    8787
  • code/trunk/src/modules/notifications/NotificationDispatcher.h

    r7404 r7407  
    5555            virtual ~NotificationDispatcher(); //!< Destructor.
    5656
    57             virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); //!< Method for creating a NotificationDispatcher object through XML.
    58             virtual void XMLEventPort(Element& xmlElement, XMLPort::Mode mode);
     57            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a NotificationDispatcher object through XML.
     58            virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
    5959
    6060            /**
  • 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.