Changeset 1989 for code/branches/objecthierarchy/src/core/Template.cc
- Timestamp:
- Oct 21, 2008, 4:56:41 PM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/Template.cc
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/code/branches/ceguilua/src/orxonox/objects/Template.cc 1802-1808 /code/branches/core3/src/orxonox/objects/Template.cc 1572-1739 /code/branches/gcc43/src/orxonox/objects/Template.cc 1580 /code/branches/gui/src/orxonox/objects/Template.cc 1635-1723 /code/branches/input/src/orxonox/objects/Template.cc 1629-1636 /code/branches/script_trigger/src/orxonox/objects/Template.cc 1295-1953,1955
r1971 r1989 49 49 Template::~Template() 50 50 { 51 Template::getTemplateMap().erase(this->getName()); 51 52 } 52 53 … … 59 60 60 61 this->setXMLElement(*xmlelement.FirstChildElement(false)); 62 } 63 64 void Template::changedName() 65 { 66 if (this->getName() != "") 67 { 68 std::map<std::string, Template*>::iterator it; 69 it = Template::getTemplateMap().find(this->getOldName()); 70 if (it != Template::getTemplateMap().end()) 71 Template::getTemplateMap().erase(it); 72 73 it = Template::getTemplateMap().find(this->getName()); 74 if (it != Template::getTemplateMap().end()) 75 COUT(2) << "Warning: Template with name \"" << this->getName() << "\" already exists." << std::endl; 76 else 77 Template::getTemplateMap()[this->getName()] = this; 78 } 61 79 } 62 80 -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.