Changeset 2024 for code/branches/objecthierarchy/src/core
- Timestamp:
- Oct 28, 2008, 3:05:17 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/CommandEvaluation.cc
r1879 r2024 78 78 if (this->bEvaluatedParams_ && this->function_) 79 79 { 80 COUT( 5) << "CE_execute (evaluation): " << this->function_->getName() << " " << this->param_[0] << " " << this->param_[1] << " " << this->param_[2] << " " << this->param_[3] << " " << this->param_[4] << std::endl;80 COUT(6) << "CE_execute (evaluation): " << this->function_->getName() << " " << this->param_[0] << " " << this->param_[1] << " " << this->param_[2] << " " << this->param_[3] << " " << this->param_[4] << std::endl; 81 81 (*this->function_)(this->param_[0], this->param_[1], this->param_[2], this->param_[3], this->param_[4]); 82 82 return true; -
code/branches/objecthierarchy/src/core/Identifier.h
r2019 r2024 487 487 SubclassIdentifier<T>& operator=(Identifier* identifier) 488 488 { 489 if (!identifier ->isA(ClassIdentifier<T>::getIdentifier()))489 if (!identifier || !identifier->isA(ClassIdentifier<T>::getIdentifier())) 490 490 { 491 491 COUT(1) << "An error occurred in SubclassIdentifier (Identifier.h):" << std::endl; 492 COUT(1) << "Error: Class " << identifier->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!" << std::endl; 493 COUT(1) << "Error: SubclassIdentifier<" << ClassIdentifier<T>::getIdentifier()->getName() << "> = Class(" << identifier->getName() << ") is forbidden." << std::endl; 494 COUT(1) << "Aborting..." << std::endl; 495 abort(); 492 if (identifier) 493 { 494 COUT(1) << "Error: Class " << identifier->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!" << std::endl; 495 COUT(1) << "Error: SubclassIdentifier<" << ClassIdentifier<T>::getIdentifier()->getName() << "> = Class(" << identifier->getName() << ") is forbidden." << std::endl; 496 } 497 else 498 { 499 COUT(1) << "Error: Can't assign NULL identifier" << std::endl; 500 } 496 501 } 497 this->identifier_ = identifier; 502 else 503 { 504 this->identifier_ = identifier; 505 } 498 506 return *this; 499 507 } -
code/branches/objecthierarchy/src/core/Template.cc
r2019 r2024 149 149 return it->second; 150 150 else 151 { 152 COUT(2) << "Warning: Template with name " << name << " doesn't exist." << std::endl; 151 153 return 0; 154 } 152 155 } 153 156
Note: See TracChangeset
for help on using the changeset viewer.