Changeset 244 for code/branches/objecthierarchie/src/Identifier.cc
- Timestamp:
- Nov 25, 2007, 5:21:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchie/src/Identifier.cc
r243 r244 11 11 { 12 12 this->bCreatedOneObject_ = false; 13 this->factory_ = 0; 13 14 14 15 this->children_ = new IdentifierList; … … 27 28 std::cout << "*** Initialize " << this->name_ << "-Singleton.\n"; 28 29 #endif 30 this->bCreatedOneObject_ = true; 31 29 32 if (parents) 30 33 { 31 this->bCreatedOneObject_ = true;32 33 34 IdentifierListElement* temp1 = parents->first_; 34 35 while (temp1) … … 39 40 temp1 = temp1->next_; 40 41 } 42 } 43 } 44 45 BaseObject* Identifier::fabricate() 46 { 47 if (this->factory_) 48 { 49 return this->factory_->fabricate(); 50 } 51 else 52 { 53 std::cout << "Error: Cannot create an object of type '" << this->name_ << "'. Class is abstract.\n"; 54 std::cout << "Aborting..."; 55 abort(); 41 56 } 42 57 }
Note: See TracChangeset
for help on using the changeset viewer.