- Timestamp:
- Apr 26, 2015, 3:10:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/class/Identifier.h
r10395 r10399 117 117 inline const std::string& getName() const { return this->name_; } 118 118 119 /// Returns the name of the class as it is returned by typeid(T).name()120 virtual const std:: string& getTypeidName() = 0;119 /// Returns the type_info of the class as it is returned by typeid(T) 120 virtual const std::type_info& getTypeInfo() = 0; 121 121 122 122 /// Returns the network ID to identify a class through the network. … … 265 265 ClassIdentifier<T>::classIdentifier_s = this; 266 266 267 this->typeidName_ = typeid(T).name();268 267 SuperFunctionInitialization<0, T>::initialize(this); 269 268 } … … 283 282 virtual void updateConfigValues(bool updateChildren = true) const; 284 283 285 virtual const std:: string& getTypeidName()286 { return t his->typeidName_; }284 virtual const std::type_info& getTypeInfo() 285 { return typeid(T); } 287 286 288 287 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const … … 297 296 void updateConfigValues(bool updateChildren, Identifiable*) const; 298 297 299 std::string typeidName_;300 298 static WeakPtr<ClassIdentifier<T> > classIdentifier_s; 301 299 }; … … 312 310 { 313 311 if (ClassIdentifier<T>::classIdentifier_s == NULL) 314 ClassIdentifier<T>::classIdentifier_s = (ClassIdentifier<T>*) IdentifierManager::getInstance().getIdentifierByType idName(typeid(T).name());312 ClassIdentifier<T>::classIdentifier_s = (ClassIdentifier<T>*) IdentifierManager::getInstance().getIdentifierByTypeInfo(typeid(T)); 315 313 316 314 OrxVerify(ClassIdentifier<T>::classIdentifier_s != NULL, "Assertion failed in ClassIdentifier of type " << typeid(T).name());
Note: See TracChangeset
for help on using the changeset viewer.