Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 5:32:58 PM (16 years ago)
Author:
landauf
Message:

small update to do further network tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/BaseObject.h

    r1940 r1950  
    5959
    6060            /** @brief Sets the name of the object. @param name The name */
    61             inline void setName(const std::string& name) { this->name_ = name; this->changedName(); }
    62             /** @brief Returns the name of the object. @return The name */
     61            inline void setName(const std::string& name) { this->oldName_ = this->name_; this->name_ = name; this->changedName(); }
     62            /** @brief Returns the name of the object. */
    6363            inline const std::string& getName() const { return this->name_; }
     64            /** @brief Returns the old name of the object. */
     65            inline const std::string& getOldName() const { return this->oldName_; }
    6466            /** @brief This function gets called if the name of the object changes. */
    6567            virtual void changedName() {}
     
    9597        protected:
    9698            std::string name_;                          //!< The name of the object
     99            std::string oldName_;                       //!< The old name of the object
    97100            bool bActive_;                              //!< True = the object is active
    98101            bool bVisible_;                             //!< True = the object is visible
Note: See TracChangeset for help on using the changeset viewer.