Changeset 1950 for code/branches/objecthierarchy/src/core
- Timestamp:
- Oct 19, 2008, 5:32:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/BaseObject.h
r1940 r1950 59 59 60 60 /** @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. */ 63 63 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_; } 64 66 /** @brief This function gets called if the name of the object changes. */ 65 67 virtual void changedName() {} … … 95 97 protected: 96 98 std::string name_; //!< The name of the object 99 std::string oldName_; //!< The old name of the object 97 100 bool bActive_; //!< True = the object is active 98 101 bool bVisible_; //!< True = the object is visible
Note: See TracChangeset
for help on using the changeset viewer.