Changeset 9556 for code/branches/core6/src/libraries/core/Identifier.h
- Timestamp:
- Mar 23, 2013, 4:34:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/Identifier.h
r8858 r9556 56 56 object->getIdentifier()->getName(); // returns "MyClass" 57 57 58 BaseObject* other = object->getIdentifier()->fabricate(0);// fabricates a new instance of MyClass58 OrxonoxClass* other = object->getIdentifier()->fabricate(0); // fabricates a new instance of MyClass 59 59 60 60 … … 62 62 ObjectListBase* objects = object->getIdentifier()->getObjects(); // get a pointer to the object-list 63 63 int count; 64 for (Iterator< BaseObject> it = objects.begin(); it != objects.end(); ++it)// iterate through the objects64 for (Iterator<MyClass> it = objects.begin(); it != objects.end(); ++it) // iterate through the objects 65 65 ++count; 66 66 orxout() << count << endl; // prints "2" because we created 2 instances of MyClass so far … … 133 133 inline bool hasFactory() const { return (this->factory_ != 0); } 134 134 135 BaseObject* fabricate(BaseObject* creator);135 OrxonoxClass* fabricate(BaseObject* creator); 136 136 137 137 /// Returns true if the class can be loaded through XML.
Note: See TracChangeset
for help on using the changeset viewer.