Changeset 9305 for code/branches/presentation2012merge/src/orxonox/pickup
- Timestamp:
- Jun 18, 2012, 9:54:49 PM (13 years ago)
- Location:
- code/branches/presentation2012merge/src/orxonox/pickup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/orxonox/pickup/PickupIdentifier.cc
r9294 r9305 113 113 Returns false if the parameter already existed, true if not. 114 114 */ 115 bool PickupIdentifier::addParameter(const std::string& name, const std::string& value)115 bool PickupIdentifier::addParameter(const std::string& name, const MultiType& value) 116 116 { 117 117 orxout(verbose, context::pickups) << "PickupIdentifier " << name << ", " << value << endl; … … 123 123 } 124 124 125 this->parameters_[name] = value ;125 this->parameters_[name] = value.getString(); 126 126 127 127 return true; -
code/branches/presentation2012merge/src/orxonox/pickup/PickupIdentifier.h
r9294 r9305 72 72 virtual int compare(const PickupIdentifier* identifier) const; //!< Compares two PickupIdentifiers and returns 0 if a == b, <0 if a < b and >0 if a > b for a.compare(b). 73 73 74 bool addParameter(const std::string& name, const std::string& value); //!< Add a parameter to the PickupIdentifier.74 bool addParameter(const std::string& name, const MultiType& value); //!< Add a parameter to the PickupIdentifier. 75 75 76 76 private:
Note: See TracChangeset
for help on using the changeset viewer.