Changeset 1634 for code/branches/gcc43/src/core/BaseObject.h
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/core/BaseObject.h
r1558 r1634 56 56 57 57 /** @brief Returns if the object was initialized (passed the object registration). @return True was the object is initialized */ 58 inlinebool isInitialized() const { return this->bInitialized_; }58 bool isInitialized() const { return this->bInitialized_; } 59 59 60 60 /** @brief Sets the name of the object. @param name The name */ 61 inlinevoid setName(const std::string& name) { this->name_ = name; this->changedName(); }61 void setName(const std::string& name) { this->name_ = name; this->changedName(); } 62 62 /** @brief Returns the name of the object. @return The name */ 63 inlineconst std::string& getName() const { return this->name_; }63 const std::string& getName() const { return this->name_; } 64 64 /** @brief This function gets called if the name of the object changes. */ 65 65 virtual void changedName() {} 66 66 67 67 /** @brief Sets the state of the objects activity. @param bActive True = active */ 68 inlinevoid setActivity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }68 void setActivity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); } 69 69 /** @brief Returns the state of the objects activity. @return The state of the activity */ 70 inlinebool isActive() const { return this->bActive_; }70 bool isActive() const { return this->bActive_; } 71 71 /** @brief This function gets called if the activity of the object changes. */ 72 72 virtual void changedActivity() {} 73 73 74 74 /** @brief Sets the state of the objects visibility. @param bVisible True = visible */ 75 inlinevoid setVisibility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }75 void setVisibility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); } 76 76 /** @brief Returns the state of the objects visibility. @return The state of the visibility */ 77 inlinebool isVisible() const { return this->bVisible_; }77 bool isVisible() const { return this->bVisible_; } 78 78 /** @brief This function gets called if the visibility of the object changes. */ 79 79 virtual void changedVisibility() {} 80 80 81 81 /** @brief Sets a pointer to the level that loaded this object. @param level The pointer to the level */ 82 inlinevoid setLevel(const Level* level) { this->level_ = level; }82 void setLevel(const Level* level) { this->level_ = level; } 83 83 /** @brief Returns a pointer to the level that loaded this object. @return The level */ 84 inlineconst Level* getLevel() const { return this->level_; }84 const Level* getLevel() const { return this->level_; } 85 85 const std::string& getLevelfile() const; 86 86 87 virtual inlinevoid setNamespace(Namespace* ns) { this->namespace_ = ns; }88 inlineNamespace* getNamespace() const { return this->namespace_; }87 virtual void setNamespace(Namespace* ns) { this->namespace_ = ns; } 88 Namespace* getNamespace() const { return this->namespace_; } 89 89 90 90 /** @brief Sets the indentation of the debug output in the Loader. @param indentation The indentation */ 91 inlinevoid setLoaderIndentation(const std::string& indentation) { this->loaderIndentation_ = indentation; }91 void setLoaderIndentation(const std::string& indentation) { this->loaderIndentation_ = indentation; } 92 92 /** @brief Returns the indentation of the debug output in the Loader. @return The indentation */ 93 inlineconst std::string& getLoaderIndentation() const { return this->loaderIndentation_; }93 const std::string& getLoaderIndentation() const { return this->loaderIndentation_; } 94 94 95 95 private:
Note: See TracChangeset
for help on using the changeset viewer.