- Timestamp:
- Aug 19, 2010, 2:14:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/XMLPort.h
r7163 r7186 317 317 { return this->paramname_; } 318 318 319 virtual XMLPortParamContainer& description(const std::string& description) = 0; 320 virtual const std::string& getDescription() = 0; 319 inline XMLPortParamContainer& description(const std::string& description) 320 { this->description_ = description; return *this; } 321 inline const std::string& getDescription() const 322 { return this->description_; } 321 323 322 324 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) = 0; … … 332 334 Identifier* identifier_; 333 335 BaseObject* owner_; 336 std::string description_; 334 337 }; 335 338 … … 436 439 } 437 440 438 virtual XMLPortParamContainer& description(const std::string& description)439 { this->loadexecutor_->setDescription(description); return (*this); }440 virtual const std::string& getDescription()441 { return this->loadexecutor_->getDescription(); }442 443 441 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) 444 442 { … … 502 500 { return this->sectionname_; } 503 501 504 virtual XMLPortObjectContainer& description(const std::string& description) = 0; 505 virtual const std::string& getDescription() = 0; 502 inline XMLPortObjectContainer& description(const std::string& description) 503 { this->description_ = description; return *this; } 504 const std::string& getDescription() const 505 { return this->description_; } 506 506 507 507 bool identifierIsIncludedInLoaderMask(const Identifier* identifier); … … 513 513 Identifier* identifier_; 514 514 Identifier* objectIdentifier_; 515 std::string description_; 515 516 }; 516 517 … … 548 549 (*this->loadexecutor_)(castedObject, castedNewObject); 549 550 } 550 551 virtual XMLPortObjectContainer& description(const std::string& description)552 { this->loadexecutor_->setDescription(description); return (*this); }553 virtual const std::string& getDescription()554 { return this->loadexecutor_->getDescription(); }555 551 556 552 private:
Note: See TracChangeset
for help on using the changeset viewer.