source:
code/branches/Dialog_HS17/src/modules/dialog/AnswerId.cc
@
11750
| Last change on this file since 11750 was 11644, checked in by kuchlert, 8 years ago | |
|---|---|
| File size: 522 bytes | |
| Rev | Line | |
|---|---|---|
| [11579] | 1 | #include "AnswerId.h" |
| [11611] | 2 | #include "core/CoreIncludes.h" |
| [11579] | 3 | |
| 4 | ||
| 5 | namespace orxonox{ | |
| 6 | ||
| 7 | RegisterClass(AnswerId); | |
| 8 | ||
| 9 | AnswerId::AnswerId(Context* context) : BaseObject(context) | |
| 10 | { | |
| 11 | RegisterObject(AnswerId); | |
| 12 | } | |
| [11611] | 13 | |
| [11579] | 14 | void AnswerId::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
| 15 | { | |
| 16 | SUPER(AnswerId, XMLPort, xmlelement, mode); | |
| 17 | ||
| 18 | XMLPortParam(AnswerId, "Id", setId, getId, xmlelement, mode); | |
| 19 | } | |
| 20 | ||
| [11644] | 21 | void AnswerId::setId(const std::string& id) |
| [11611] | 22 | { |
| 23 | this->id_ = id; | |
| [11579] | 24 | } |
| [11611] | 25 | |
| [11644] | 26 | const std::string& AnswerId::getId() const |
| [11611] | 27 | { |
| 28 | return this->id_; | |
| [11579] | 29 | } |
| 30 | } |
Note: See TracBrowser
for help on using the repository browser.










