#include <answer.h>
Inheritance diagram for Answer:

Public Member Functions | |
| Answer (const int iID=0, const bool bValue=false) | |
| Default constructor. | |
| Answer (const int iID, const bool bValue, const std::string &sDescription) | |
| Full constructor. | |
| ~Answer () | |
| Destructor. | |
| void | setID (const int iID) |
| Sets answer ID. | |
| const int | getAnswerID () const |
| Returns answer ID. | |
| const bool | getValue () const |
| Returns answer value. | |
| void | setValue (const bool bValue) |
| Sets the answer value. | |
| std::string | getDescription () const |
| Returns answer short description. | |
| void | setDescription (const std::string &sDescription) |
| Sets the answer short description. | |
| virtual void | processMessage () const =0 |
| Abstract method which process the answer. | |
| void | toXML (XMLWriter &) const |
| Write a XML representation of this object. | |
| virtual std::string | toString () const |
| Returns a string representation of the answer. | |
Static Public Attributes | |
| static const char * | ID_ATTR = "id" |
| Name of ID attribute. | |
Yves Houpert <yves.houpert@insa-rouen.fr>
|
||||||||||||
|
Default constructor.
|
|
||||||||||||||||
|
Full constructor.
|
|
|
Returns answer ID.
|
|
|
Returns answer short description.
|
|
|
Returns answer value.
|
|
|
Sets the answer short description.
|
|
|
Sets answer ID.
|
|
|
Sets the answer value.
|
|
|
Returns a string representation of the answer.
Implements BaseMessage. Reimplemented in AddContactAnswer, ConnectionAnswer, ContactListAnswer, and DelContactAnswer. |
|
|
Write a XML representation of this object. Here does nothing, because we nerver have the need to write an answer to the server. Hence, this function is not defined. Implements BaseMessage. |
1.4.6