Changeset 9329 in orxonox.OLD for branches/proxy/src/lib/lang/base_object.h
- Timestamp:
- Jul 18, 2006, 7:34:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/lang/base_object.h
r8362 r9329 1 1 /*! 2 2 * @file base_object.h 3 * Definition of the base object class. 4 5 This is a global handler for all classes. 6 */ 3 * @brief Definition of the BaseObject class. 4 * 5 * This is a global handler for all classes Object and Class names 6 * 7 * BaseObject is the class, that handles object registration and 8 * is the only write-access member of ClassList, where the Objects 9 * References are stored. 10 */ 7 11 8 12 9 #ifndef _ BASE_OBJECT_H10 #define _ BASE_OBJECT_H13 #ifndef __BASE_OBJECT_H_ 14 #define __BASE_OBJECT_H_ 11 15 12 16 #include "class_id.h" … … 41 45 bool isA (ClassID classID) const; 42 46 bool isA (const std::string& className) const; 43 void whatIs() const;44 47 45 bool operator==(const std::string& objectName);46 48 /** @param classID comparer for a ClassID @returns true on match, false otherwise */ 47 bool operator==(ClassID classID) { return this->isA(classID); }; 49 bool operator==(ClassID classID) const { return this->isA(classID); }; 50 bool operator==(const std::string& objectName) const; 48 51 49 52 protected: … … 54 57 55 58 private: 56 57 59 std::string className; //!< the name of the class 58 60 long classID; //!< this is the id from the class_id.h enumeration … … 64 66 }; 65 67 66 #endif /* _ BASE_OBJECT_H*/68 #endif /* __BASE_OBJECT_H_ */
Note: See TracChangeset
for help on using the changeset viewer.