Changeset 813 for code/branches/core/src
- Timestamp:
- Feb 15, 2008, 4:31:58 PM (17 years ago)
- Location:
- code/branches/core/src/orxonox
- Files:
-
- 2 deleted
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/BaseObject.cc
r790 r813 20 20 * 21 21 * Author: 22 * ...22 * Fabian 'x3n' Landau 23 23 * Co-authors: 24 24 * ... … … 26 26 */ 27 27 28 /* !28 /** 29 29 @file BaseObject.cc 30 30 @brief Implementation of the BaseObject class. -
code/branches/core/src/orxonox/core/BaseObject.h
r790 r813 1 /*! 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * Fabian 'x3n' Landau 23 * Co-authors: 24 * ... 25 * 26 */ 27 28 /** 2 29 @file BaseObject.h 3 30 @brief Definition of the BaseObject class. -
code/branches/core/src/orxonox/core/CMakeLists.txt
r805 r813 1 1 SET( CORE_SRC_FILES 2 OrxonoxClass.cc 2 3 BaseObject.cc 3 4 Factory.cc 4 IdentifierList.cc5 5 Identifier.cc 6 IdentifierDistributor.cc 6 7 MetaObjectList.cc 7 OrxonoxClass.cc8 8 ConfigValueContainer.cc 9 9 Error.cc … … 14 14 Language.cc 15 15 ClassTreeMask.cc 16 IdentifierDistributor.cc16 # Level.cc 17 17 ) 18 18 -
code/branches/core/src/orxonox/core/ClassFactory.h
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ClassFactory.h 30 30 @brief Definition and implementation of the ClassFactory class -
code/branches/core/src/orxonox/core/ClassManager.h
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ClassManager.h 30 30 @brief Definition and Implementation of the ClassManager template. -
code/branches/core/src/orxonox/core/ClassTreeMask.cc
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ClassTreeMask.cc 30 30 @brief Implementation of the ClassTreeMask, ClassTreeMaskNode and ClassTreeMaskIterator classes. … … 294 294 void ClassTreeMask::add(const Identifier* subclass, bool bInclude) 295 295 { 296 this->add(this->root_, subclass, bInclude); 296 if (subclass->isA(this->root_->getClass())) 297 this->add(this->root_, subclass, bInclude); 298 else 299 { 300 301 } 302 303 this->clean(); 297 304 } 298 305 -
code/branches/core/src/orxonox/core/ClassTreeMask.h
r809 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ClassTreeMask.h 30 30 @brief Definition of the ClassTreeMask, ClassTreeMaskNode and ClassTreeMaskIterator classes. … … 82 82 tree of ClassTreeMask. To build a tree, they store a list of all subnodes. 83 83 */ 84 class ClassTreeMaskNode84 class _CoreExport ClassTreeMaskNode 85 85 { 86 86 friend class ClassTreeMask; … … 120 120 subclasses, it steps another step back, and so on. 121 121 */ 122 class ClassTreeMaskIterator122 class _CoreExport ClassTreeMaskIterator 123 123 { 124 124 public: … … 151 151 you want to drop useless rules, call the clean() function. 152 152 */ 153 class ClassTreeMask153 class _CoreExport ClassTreeMask 154 154 { 155 155 public: -
code/branches/core/src/orxonox/core/ConfigValueContainer.cc
r811 r813 25 25 * 26 26 */ 27 28 /** 29 @file ConfigValueContainer.cc 30 @brief Implementation of the ConfigValueContainer class. 31 */ 27 32 28 33 #include <fstream> … … 828 833 829 834 /** 830 @returns a list, containing all entrys in the config-file. 835 @brief Rreturns a list, containing all entrys in the config-file. 836 @return The list 831 837 */ 832 838 std::list<std::string>& ConfigValueContainer::getConfigFileLines() -
code/branches/core/src/orxonox/core/ConfigValueContainer.h
r797 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ConfigValueContainer.h 30 30 @brief Definition of the ConfigValueContainer class. … … 75 75 ConfigValueContainer(const std::string& classname, const std::string& varname, MultiTypeMath defvalue); 76 76 77 /** @ returns the value. @param value This is only needed to determine the right type.*/77 /** @brief Returns the configured value. @param value This is only needed to determine the right type. @return The value */ 78 78 /* template <typename T> 79 79 inline ConfigValueContainer& getValue(T& value) { this->value_.getValue(value); return *this; } -
code/branches/core/src/orxonox/core/CoreIncludes.h
r811 r813 52 52 #include "Debug.h" 53 53 54 55 // All needed macros 54 56 /** 55 57 @brief Intern macro, containing the common parts of RegisterObject and RegisterRootObject. … … 60 62 this->setIdentifier(orxonox::ClassManager<ClassName>::getIdentifier()->registerClass(this->getParents(), #ClassName, bRootClass)); \ 61 63 if (orxonox::Identifier::isCreatingHierarchy() && this->getParents()) \ 62 this->getParents()-> add(this->getIdentifier()); \64 this->getParents()->insert(this->getParents()->end(), this->getIdentifier()); \ 63 65 orxonox::ClassManager<ClassName>::getIdentifier()->addObject(this) 64 66 … … 69 71 #define InternRegisterRootObject(ClassName) \ 70 72 if (orxonox::Identifier::isCreatingHierarchy() && !this->getParents()) \ 71 this-> setParents(new orxonox::IdentifierList()); \73 this->createParents(); \ 72 74 InternRegisterObject(ClassName, true) 73 75 -
code/branches/core/src/orxonox/core/CorePrereqs.h
r805 r813 27 27 28 28 /** 29 @file CorePrereq.h30 @brief Contains all the necessary forward declarations for all classes, structs and enums.31 29 @file CorePrereq.h 30 @brief Contains all the necessary forward declarations for all classes, structs and enums. 31 */ 32 32 33 33 #ifndef _CorePrereqs_H__ … … 72 72 template <class T> 73 73 class ClassManager; 74 class ClassTreeMask; 75 class ClassTreeMaskIterator; 76 class ClassTreeMaskNode; 74 77 class ConfigValueContainer; 75 78 class DebugLevel; … … 78 81 class Identifier; 79 82 class IdentifierDistributor; 80 class IdentifierList;81 class IdentifierListElement;83 // class IdentifierList; 84 // class IdentifierListElement; 82 85 template <class T> 83 86 class Iterator; 84 87 class Language; 85 88 class LanguageEntry; 89 class Level; 86 90 class MetaObjectList; 87 91 template <class T> -
code/branches/core/src/orxonox/core/Debug.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 * @file Debug.h 30 30 * @brief Handles the output for different verbose-modes. -
code/branches/core/src/orxonox/core/DebugLevel.cc
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file DebugLevel.cc 30 30 @brief Implementation of the DebugLevel class. … … 99 99 100 100 /** 101 @returns the soft debug level, stored in the only existing instance of the DebugLevel class, configured in the config-file. 101 @brief Returns the soft debug level, stored in the only existing instance of the DebugLevel class, configured in the config-file. 102 @return The soft debug level 102 103 */ 103 104 int getSoftDebugLevel() -
code/branches/core/src/orxonox/core/DebugLevel.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file DebugLevel.h 30 30 @brief Definition of the DebugLevel class. -
code/branches/core/src/orxonox/core/Error.cc
r790 r813 25 25 * 26 26 */ 27 28 /** 29 @file Error.cc 30 @brief Implementation of the Error class. 31 */ 27 32 28 33 #include "Debug.h" -
code/branches/core/src/orxonox/core/Error.h
r790 r813 26 26 */ 27 27 28 /** 29 @file Error.h 30 @brief Definition of the Error class. 31 */ 32 28 33 #ifndef _Error_H__ 29 34 #define _Error_H__ -
code/branches/core/src/orxonox/core/Factory.cc
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Factory.cc 30 30 @brief Implementation of the Factory class. … … 39 39 { 40 40 /** 41 @ returns the Identifier with a given name.41 @brief Returns the Identifier with a given name. 42 42 @param name The name of the wanted Identifier 43 @return The Identifier 43 44 */ 44 45 Identifier* Factory::getIdentifier(const std::string& name) … … 48 49 49 50 /** 50 @ returns the Identifier with a given network ID.51 @brief Returns the Identifier with a given network ID. 51 52 @param id The network ID of the wanted Identifier 53 @return The Identifier 52 54 */ 53 55 Identifier* Factory::getIdentifier(const unsigned int id) -
code/branches/core/src/orxonox/core/Factory.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Factory.h 30 30 @brief Definition of the Factory and the BaseFactory class. -
code/branches/core/src/orxonox/core/Identifier.cc
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Identifier.cc 30 30 @brief Implementation of the Identifier class. … … 49 49 this->factory_ = 0; 50 50 51 this->children_ = new IdentifierList;51 this->children_ = new std::list<const Identifier*>(); 52 52 53 53 // Use a static variable because the classID gets created before main() and that's why we should avoid static member variables … … 57 57 58 58 /** 59 @brief Destructor: Deletes the IdentifierList containing the children.59 @brief Destructor: Deletes the list containing the children. 60 60 */ 61 61 Identifier::~Identifier() … … 65 65 66 66 /** 67 @brief Initializes the Identifier with a n IdentifierList containing all parents of the class the Identifier belongs to.68 @param parents The IdentifierList containing all parents67 @brief Initializes the Identifier with a list containing all parents of the class the Identifier belongs to. 68 @param parents A list containing all parents 69 69 */ 70 void Identifier::initialize( const IdentifierList* parents)70 void Identifier::initialize(std::list<const Identifier*>* parents) 71 71 { 72 72 COUT(4) << "*** Identifier: Initialize " << this->name_ << "-Singleton." << std::endl; … … 75 75 if (parents) 76 76 { 77 IdentifierListElement* temp1 = parents->first_;78 while (temp1 )77 std::list<const Identifier*>::iterator temp1 = parents->begin(); 78 while (temp1 != parents->end()) 79 79 { 80 this->parents_. add(temp1->identifier_);81 temp1->identifier_->getChildren().add(this); // We're a child of our parents80 this->parents_.insert(this->parents_.end(), *temp1); 81 (*temp1)->getChildren().insert((*temp1)->getChildren().end(), this); // We're a child of our parents 82 82 83 temp1 = temp1->next_;83 ++temp1; 84 84 } 85 85 } … … 118 118 119 119 /** 120 @ returns true, if the Identifier is at least of the given type.120 @brief Returns true, if the Identifier is at least of the given type. 121 121 @param identifier The identifier to compare with 122 122 */ 123 123 bool Identifier::isA(const Identifier* identifier) const 124 124 { 125 return (identifier == this || this-> parents_.isInList(identifier));125 return (identifier == this || this->identifierIsInList(identifier, this->parents_)); 126 126 } 127 127 128 128 /** 129 @ returns true, if the Identifier is exactly of the given type.129 @brief Returns true, if the Identifier is exactly of the given type. 130 130 @param identifier The identifier to compare with 131 131 */ … … 136 136 137 137 /** 138 @ returns true, if the assigned identifier is a child of the given identifier.138 @brief Returns true, if the assigned identifier is a child of the given identifier. 139 139 @param identifier The identifier to compare with 140 140 */ 141 141 bool Identifier::isChildOf(const Identifier* identifier) const 142 142 { 143 return this-> parents_.isInList(identifier);143 return this->identifierIsInList(identifier, this->parents_); 144 144 } 145 145 146 146 /** 147 @ returns true, if the assigned identifier is a parent of the given identifier.147 @brief Returns true, if the assigned identifier is a parent of the given identifier. 148 148 @param identifier The identifier to compare with 149 149 */ 150 150 bool Identifier::isParentOf(const Identifier* identifier) const 151 151 { 152 return this->children_->isInList(identifier); 152 return this->identifierIsInList(identifier, *this->children_); 153 } 154 155 /** 156 @brief Searches for a given identifier in a list and returns whether the identifier is in the list or not. 157 @param identifier The identifier to look for 158 @param list The list 159 @return True = the identifier is in the list 160 */ 161 bool Identifier::identifierIsInList(const Identifier* identifier, const std::list<const Identifier*>& list) 162 { 163 for (std::list<const Identifier*>::const_iterator it = list.begin(); it != list.end(); ++it) 164 if (identifier == (*it)) 165 return true; 166 167 return false; 153 168 } 154 169 } -
code/branches/core/src/orxonox/core/Identifier.h
r812 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Identifier.h 30 30 @brief Definition of the Identifier, ClassIdentifier and SubclassIdentifier classes, implementation of the ClassIdentifier and SubclassIdentifier classes. … … 52 52 #define _Identifier_H__ 53 53 54 #include <list> 54 55 #include <map> 55 56 #include <string> … … 59 60 60 61 #include "ObjectList.h" 61 #include "IdentifierList.h"62 //#include "IdentifierList.h" 62 63 #include "Debug.h" 63 64 #include "Iterator.h" … … 109 110 virtual void removeObjects() const = 0; 110 111 111 /** @ returns the name of the class the Identifier belongs to.*/112 /** @brief Returns the name of the class the Identifier belongs to. @return The name */ 112 113 inline const std::string& getName() const { return this->name_; } 113 114 114 /** @ returns the parents of the class the Identifier belongs to.*/115 inline const IdentifierList& getParents() const { return this->parents_; }116 117 /** @returns the children of the class the Identifier belongs to.*/118 inline IdentifierList& getChildren() const { return *this->children_; }119 120 /** @ returns true, if a branch of the class-hierarchy is being created, causing all new objects to store their parents.*/115 /** @brief Returns the parents of the class the Identifier belongs to. @return The list of all parents */ 116 inline const std::list<const Identifier*>& getParents() const { return this->parents_; } 117 118 // /** @brief Returns the children of the class the Identifier belongs to. @return The list of all children */ 119 // inline const std::list<const Identifier*>& getChildren() const { return (*this->children_); } 120 121 /** @brief Returns true, if a branch of the class-hierarchy is being created, causing all new objects to store their parents. @return The status of the class-hierarchy creation */ 121 122 inline static bool isCreatingHierarchy() { return (hierarchyCreatingCounter_s > 0); } 122 123 123 /** @ returns the network ID to identify a class through the network.*/124 /** @brief Returns the network ID to identify a class through the network. @return the network ID */ 124 125 inline const unsigned int getNetworkID() const { return this->classID_; } 125 126 … … 127 128 void setNetworkID(unsigned int id); 128 129 129 /** @ returns the ConfigValueContainer of a variable, given by the string of its name. @param varname The name of the variable*/130 /** @brief Returns the ConfigValueContainer of a variable, given by the string of its name. @param varname The name of the variable @return The ConfigValueContainer */ 130 131 inline ConfigValueContainer* getConfigValueContainer(const std::string& varname) 131 132 { return this->configValues_[varname]; } … … 139 140 Identifier(const Identifier& identifier) {} // don't copy 140 141 virtual ~Identifier(); 141 void initialize(const IdentifierList* parents); 142 void initialize(std::list<const Identifier*>* parents); 143 144 /** @brief Returns the parents of the class the Identifier belongs to. @return The list of all parents */ 145 inline std::list<const Identifier*>& getParents() { return this->parents_; } 146 147 /** @brief Returns the children of the class the Identifier belongs to. @return The list of all children */ 148 inline std::list<const Identifier*>& getChildren() const { return (*this->children_); } 142 149 143 150 /** … … 159 166 } 160 167 161 IdentifierList parents_; //!< The Parents of the class the Identifier belongs to 162 IdentifierList* children_; //!< The Children of the class the Identifier belongs to 168 static bool identifierIsInList(const Identifier* identifier, const std::list<const Identifier*>& list); 169 170 // IdentifierList parents_; //!< The Parents of the class the Identifier belongs to 171 // IdentifierList* children_; //!< The Children of the class the Identifier belongs to 172 std::list<const Identifier*> parents_; //!< The Parents of the class the Identifier belongs to 173 std::list<const Identifier*>* children_; //!< The Children of the class the Identifier belongs to 163 174 164 175 std::string name_; //!< The name of the class the Identifier belongs to … … 194 205 195 206 public: 196 ClassIdentifier<T>* registerClass( const IdentifierList* parents, const std::string& name, bool bRootClass);207 ClassIdentifier<T>* registerClass(std::list<const Identifier*>* parents, const std::string& name, bool bRootClass); 197 208 void addObject(T* object); 198 209 void removeObjects() const; … … 220 231 /** 221 232 @brief Registers a class, which means that the name and the parents get stored. 222 @param parents A n IdentifierList, containing the Identifiers of all parents of the class233 @param parents A list, containing the Identifiers of all parents of the class 223 234 @param name A string, containing exactly the name of the class 224 235 @param bRootClass True if the class is either an Interface or the BaseObject itself … … 226 237 */ 227 238 template <class T> 228 ClassIdentifier<T>* ClassIdentifier<T>::registerClass( const IdentifierList* parents, const std::string& name, bool bRootClass)239 ClassIdentifier<T>* ClassIdentifier<T>::registerClass(std::list<const Identifier*>* parents, const std::string& name, bool bRootClass) 229 240 { 230 241 COUT(4) << "*** ClassIdentifier: Register Class in " << name << "-Singleton." << std::endl; … … 383 394 } 384 395 385 /** @ returns the assigned identifier.*/396 /** @brief Returns the assigned identifier. @return The identifier */ 386 397 inline const Identifier* getIdentifier() const 387 398 { return this->identifier_; } 388 399 389 /** @ returns true, if the assigned identifier is at least of the given type. @param identifier The identifier to compare with */400 /** @brief Returns true, if the assigned identifier is at least of the given type. @param identifier The identifier to compare with */ 390 401 inline bool isA(const Identifier* identifier) const 391 402 { return this->identifier_->isA(identifier); } 392 403 393 /** @ returns true, if the assigned identifier is exactly of the given type. @param identifier The identifier to compare with */404 /** @brief Returns true, if the assigned identifier is exactly of the given type. @param identifier The identifier to compare with */ 394 405 inline bool isDirectlyA(const Identifier* identifier) const 395 406 { return this->identifier_->isDirectlyA(identifier); } 396 407 397 /** @ returns true, if the assigned identifier is a child of the given identifier. @param identifier The identifier to compare with */408 /** @brief Returns true, if the assigned identifier is a child of the given identifier. @param identifier The identifier to compare with */ 398 409 inline bool isChildOf(const Identifier* identifier) const 399 410 { return this->identifier_->isChildOf(identifier); } 400 411 401 /** @ returns true, if the assigned identifier is a parent of the given identifier. @param identifier The identifier to compare with */412 /** @brief Returns true, if the assigned identifier is a parent of the given identifier. @param identifier The identifier to compare with */ 402 413 inline bool isParentOf(const Identifier* identifier) const 403 414 { return this->identifier_->isParentOf(identifier); } -
code/branches/core/src/orxonox/core/IdentifierDistributor.cc
r809 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file IdentifierDistributor.cc 30 30 @brief Implementation of the IdentifierDistributor class. -
code/branches/core/src/orxonox/core/IdentifierDistributor.h
r809 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file IdentifierDistributor.h 30 30 @brief Definition of the IdentifierDistributor class … … 45 45 { 46 46 //! The Identifier Distributor stores all Identifiers and makes sure there are no ambiguities. 47 class IdentifierDistributor47 class _CoreExport IdentifierDistributor 48 48 { 49 49 public: -
code/branches/core/src/orxonox/core/Iterator.h
r805 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Iterator.h 30 30 @brief Definition and implementation of the Iterator class. -
code/branches/core/src/orxonox/core/Language.cc
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Language.cc 30 30 @brief Implementation of the Language and the LanguageEntry class. -
code/branches/core/src/orxonox/core/Language.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file Language.h 30 30 @brief Definition of the Language and the LanguageEntry class. -
code/branches/core/src/orxonox/core/MetaObjectList.cc
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file MetaObjectList.cc 30 30 @brief Implementation of the MetaObjectList class. -
code/branches/core/src/orxonox/core/MetaObjectList.h
r811 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file MetaObjectList.h 30 30 @brief Definition of the MetaObjectList class. -
code/branches/core/src/orxonox/core/ObjectList.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file ObjectList.h 30 30 @brief Definition and implementation of the ObjectList class. … … 88 88 // void remove(OrxonoxClass* object, bool bIterateForwards = true); 89 89 90 /** @ returns the first element in the list */90 /** @brief Returns the first element in the list. @return The first element */ 91 91 inline static Iterator<T> start() 92 92 { return Iterator<T>(getList()->first_); } 93 93 94 /** @ returns the first element in the list */94 /** @brief Returns the first element in the list. @return The first element */ 95 95 inline static Iterator<T> begin() 96 96 { return Iterator<T>(getList()->first_); } 97 97 98 /** @ returns the last element in the list */98 /** @brief Returns the last element in the list. @return The last element */ 99 99 inline static Iterator<T> end() 100 100 { return Iterator<T>(getList()->last_); } … … 134 134 135 135 /** 136 @ returns a pointer to the only existing instance for the given class T.136 @brief Returns a pointer to the only existing instance for the given class T. @return The instance 137 137 */ 138 138 template <class T> -
code/branches/core/src/orxonox/core/OrxonoxClass.cc
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file OrxonoxClass.cc 30 30 @brief Implementation of the OrxonoxClass Class. -
code/branches/core/src/orxonox/core/OrxonoxClass.h
r792 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file OrxonoxClass.h 30 30 @brief Definition of the OrxonoxClass Class. … … 37 37 #define _OrxonoxClass_H__ 38 38 39 #include <list> 39 40 #include <string> 40 41 … … 59 60 void setConfigValues() {}; 60 61 61 /** @ returns the Identifier of the object*/62 /** @brief Returns the Identifier of the object. @return The Identifier */ 62 63 inline Identifier* getIdentifier() const { return this->identifier_; } 63 64 … … 65 66 inline void setIdentifier(Identifier* identifier) { this->identifier_ = identifier; } 66 67 67 /** @ returns the list of all parents of the object */68 inline IdentifierList* getParents() const { return this->parents_; }68 /** @brief Returns the list of all parents of the object. @return The list */ 69 inline std::list<const Identifier*>* getParents() const { return this->parents_; } 69 70 70 /** @brief Sets the Parents of the object. Used by the RegisterObject-macro. */71 inline void setParents(IdentifierList* parents) { this->parents_ = parents; }71 /** @brief Creates the parents-list. */ 72 inline void createParents() { this->parents_ = new std::list<const Identifier*>(); } 72 73 73 /** @returns the MetaObjectList of the object, containing a link to all ObjectLists and ObjectListElements the object is registered in. */ 74 // /** @brief Sets the Parents of the object. Used by the RegisterObject-macro. */ 75 // inline void setParents(std::list<const Identifier*>* parents) { this->parents_ = parents; } 76 77 /** @brief Returns the MetaObjectList of the object, containing a link to all ObjectLists and ObjectListElements the object is registered in. @return The list */ 74 78 inline MetaObjectList& getMetaList() { return this->metaList_; } 75 79 76 80 77 /** @ returns true if the objects class is of the given type or a derivative. */81 /** @brief Returns true if the objects class is of the given type or a derivative. */ 78 82 inline bool isA(const Identifier* identifier) 79 83 { return this->getIdentifier()->isA(identifier); } 80 /** @ returns true if the objects class is exactly of the given type. */84 /** @brief Returns true if the objects class is exactly of the given type. */ 81 85 inline bool isDirectlyA(const Identifier* identifier) 82 86 { return this->getIdentifier()->isDirectlyA(identifier); } 83 /** @ returns true if the objects class is a child of the given type. */87 /** @brief Returns true if the objects class is a child of the given type. */ 84 88 inline bool isChildOf(const Identifier* identifier) 85 89 { return this->getIdentifier()->isChildOf(identifier); } 86 /** @ returns true if the objects class is a parent of the given type. */90 /** @brief Returns true if the objects class is a parent of the given type. */ 87 91 inline bool isParentOf(const Identifier* identifier) 88 92 { return this->getIdentifier()->isParentOf(identifier); } 89 93 90 94 91 /** @ returns true if the objects class is of the given type or a derivative. */95 /** @brief Returns true if the objects class is of the given type or a derivative. */ 92 96 inline bool isA(const SubclassIdentifier<class B>* identifier) 93 97 { return this->getIdentifier()->isA(identifier->getIdentifier()); } 94 /** @ returns true if the objects class is exactly of the given type. */98 /** @brief Returns true if the objects class is exactly of the given type. */ 95 99 inline bool isDirectlyA(const SubclassIdentifier<class B>* identifier) 96 100 { return this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } 97 /** @ returns true if the objects class is a child of the given type. */101 /** @brief Returns true if the objects class is a child of the given type. */ 98 102 inline bool isChildOf(const SubclassIdentifier<class B>* identifier) 99 103 { return this->getIdentifier()->isChildOf(identifier->getIdentifier()); } 100 /** @ returns true if the objects class is a parent of the given type. */104 /** @brief Returns true if the objects class is a parent of the given type. */ 101 105 inline bool isParentOf(const SubclassIdentifier<class B>* identifier) 102 106 { return this->getIdentifier()->isParentOf(identifier->getIdentifier()); } 103 107 104 108 105 /** @ returns true if the objects class is of the given type or a derivative. */109 /** @brief Returns true if the objects class is of the given type or a derivative. */ 106 110 inline bool isA(const SubclassIdentifier<class B> identifier) 107 111 { return this->getIdentifier()->isA(identifier.getIdentifier()); } 108 /** @ returns true if the objects class is exactly of the given type. */112 /** @brief Returns true if the objects class is exactly of the given type. */ 109 113 inline bool isDirectlyA(const SubclassIdentifier<class B> identifier) 110 114 { return this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } 111 /** @ returns true if the objects class is a child of the given type. */115 /** @brief Returns true if the objects class is a child of the given type. */ 112 116 inline bool isChildOf(const SubclassIdentifier<class B> identifier) 113 117 { return this->getIdentifier()->isChildOf(identifier.getIdentifier()); } 114 /** @ returns true if the objects class is a parent of the given type. */118 /** @brief Returns true if the objects class is a parent of the given type. */ 115 119 inline bool isParentOf(const SubclassIdentifier<class B> identifier) 116 120 { return this->getIdentifier()->isParentOf(identifier.getIdentifier()); } 117 121 118 122 119 /** @ returns true if the objects class is of the given type or a derivative. */123 /** @brief Returns true if the objects class is of the given type or a derivative. */ 120 124 inline bool isA(const OrxonoxClass* object) 121 125 { return this->getIdentifier()->isA(object->getIdentifier()); } 122 /** @ returns true if the objects class is exactly of the given type. */126 /** @brief Returns true if the objects class is exactly of the given type. */ 123 127 inline bool isDirectlyA(const OrxonoxClass* object) 124 128 { return this->getIdentifier()->isDirectlyA(object->getIdentifier()); } 125 /** @ returns true if the objects class is a child of the given type. */129 /** @brief Returns true if the objects class is a child of the given type. */ 126 130 inline bool isChildOf(const OrxonoxClass* object) 127 131 { return this->getIdentifier()->isChildOf(object->getIdentifier()); } 128 /** @ returns true if the objects class is a parent of the given type. */132 /** @brief Returns true if the objects class is a parent of the given type. */ 129 133 inline bool isParentOf(const OrxonoxClass* object) 130 134 { return this->getIdentifier()->isParentOf(object->getIdentifier()); } … … 134 138 inline virtual void setName(const std::string& name) { this->name_ = name; } 135 139 136 /** @ returns the name of the object.*/140 /** @brief Returns the name of the object. @return The name */ 137 141 inline const std::string& getName() const { return this->name_; } 138 142 … … 140 144 inline virtual void setActive(bool bActive) { this->bActive_ = bActive; } 141 145 142 /** @ returns the state of the objects activity.*/146 /** @brief Returns the state of the objects activity. @return The state of the activity */ 143 147 inline const bool isActive() const { return this->bActive_; } 144 148 … … 146 150 inline virtual void setVisible(bool bVisible) { this->bVisible_ = bVisible; } 147 151 148 /** @ returns the state of the objects visibility.*/152 /** @brief Returns the state of the objects visibility. @return The state of the visibility */ 149 153 inline const bool isVisible() const { return this->bVisible_; } 150 154 151 155 private: 152 Identifier* identifier_; //!< The Identifier of the object153 IdentifierList* parents_;//!< List of all parents of the object154 MetaObjectList metaList_; //!< MetaObjectList, containing all ObjectLists and ObjectListElements the object is registered in156 Identifier* identifier_; //!< The Identifier of the object 157 std::list<const Identifier*>* parents_; //!< List of all parents of the object 158 MetaObjectList metaList_; //!< MetaObjectList, containing all ObjectLists and ObjectListElements the object is registered in 155 159 156 std::string name_; //!< The name of the object157 bool bActive_; //!< True = the object is active158 bool bVisible_; //!< True = the object is visible160 std::string name_; //!< The name of the object 161 bool bActive_; //!< True = the object is active 162 bool bVisible_; //!< True = the object is visible 159 163 }; 160 164 template class _CoreExport orxonox::ClassIdentifier<OrxonoxClass>; -
code/branches/core/src/orxonox/core/OutputHandler.cc
r790 r813 25 25 * 26 26 */ 27 28 /** 29 @file OutputHandler.cc 30 @brief Implementation of the OutputHandler class. 31 */ 27 32 28 33 #include "DebugLevel.h" … … 53 58 54 59 /** 55 @returns a reference to the only existing instance of the OutputHandler class. 60 @brief Returns a reference to the only existing instance of the OutputHandler class. 61 @return The instance 56 62 */ 57 63 OutputHandler& OutputHandler::getOutStream() -
code/branches/core/src/orxonox/core/OutputHandler.h
r790 r813 26 26 */ 27 27 28 /* !28 /** 29 29 @file OutputHandler.h 30 30 @brief Definition of the OutputHandler class. … … 59 59 static OutputHandler& getOutStream(); 60 60 61 /** @ returns a reference to the logfile.*/61 /** @brief Returns a reference to the logfile. @return The logfile */ 62 62 inline std::ofstream& getLogfile() 63 63 { return this->logfile_; } … … 67 67 { this->outputLevel_ = level; return *this; } 68 68 69 /** @ returns the level of the incoming output.*/69 /** @brief Returns the level of the incoming output. @return The level */ 70 70 inline int getOutputLevel() const 71 71 { return this->outputLevel_; } -
code/branches/core/src/orxonox/core/SignalHandler.cc
r790 r813 25 25 * 26 26 */ 27 28 /** 29 @file SignalHandler.cc 30 @brief Implementation of the SignalHandler class. 31 */ 27 32 28 33 #include <assert.h> -
code/branches/core/src/orxonox/core/SignalHandler.h
r790 r813 26 26 */ 27 27 28 /*! 29 * @file SignalHandler.h 30 */ 28 /** 29 @file SignalHandler.h 30 @brief Definition of the SignalHandler class. 31 */ 31 32 32 33 #ifndef _SignalHandler_H__ -
code/branches/core/src/orxonox/tools/Timer.h
r790 r813 94 94 /** @brief Unpauses the Timer - continues with the given state. */ 95 95 inline void unpauseTimer() { this->bActive_ = true; } 96 /** @ returns true if the Timer is active (= not stoped, not paused).*/96 /** @brief Returns true if the Timer is active (= not stoped, not paused). @return True = Time is active */ 97 97 inline bool isActive() const { return this->bActive_; } 98 98
Note: See TracChangeset
for help on using the changeset viewer.