Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ishtar::Answer Class Reference

#include <services.h>

Inheritance diagram for Ishtar::Answer:

Ishtar::ErrorAnswer Ishtar::ServiceAnswer Ishtar::ValuesAnswer List of all members.

Detailed Description

An interface for answers from server.


Public Types

enum  Type { ERROR, SERVICE_LIST, VALUES }
 The type of answer. More...

Public Member Functions

virtual ~Answer ()
 Destructor.
virtual void serialize (OutputStream *stream)=0
 Serialize this answer to stream.
virtual void deserializeSpecified (InputStream *stream)=0
 Deserialize this answer from stream, the type has already been read because the Answer is already created.

Static Public Member Functions

static Answerdeserialize (InputStream *stream)
 Deserialize an Answer from a stream and return it. First read the type, then create the corresponding Answer and call deserializeSpecified on it.


Member Enumeration Documentation

enum Ishtar::Answer::Type
 

The type of answer.

Enumeration values:
ERROR  Error.
SERVICE_LIST  List of services.
VALUES  Values of a given service.


The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:31:22 2005 for libishtarservices by  doxygen 1.4.2