Changeset 6479 for code/branches/pickup3/src/libraries/core/BaseObject.cc
- Timestamp:
- Mar 7, 2010, 11:07:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/libraries/core/BaseObject.cc
r6417 r6479 115 115 XMLPortParam(BaseObject, "active", setActive, isActive, xmlelement, mode); 116 116 XMLPortParam(BaseObject, "mainstate", setMainStateName, getMainStateName, xmlelement, mode); 117 117 XMLPortParamTemplate(BaseObject, "template", addTemplate, getSingleTemplate, xmlelement, mode, const std::string&); 118 118 119 XMLPortObjectTemplate(BaseObject, Template, "templates", addTemplate, getTemplate, xmlelement, mode, Template*); 119 120 XMLPortObject(BaseObject, BaseObject, "eventlisteners", addEventListener, getEventListener, xmlelement, mode); … … 190 191 191 192 /** 193 @brief Returns the name of the first Template. 194 @return The name as string. 195 */ 196 const std::string& BaseObject::getSingleTemplate(void) const 197 { 198 if(this->templates_.empty()) 199 return BLANKSTRING; 200 201 return (*this->templates_.begin())->getName(); 202 } 203 204 /** 192 205 @brief Returns the Template with the given index. 193 206 @param index The index
Note: See TracChangeset
for help on using the changeset viewer.