#include <services.h>
Inheritance diagram for Ishtar::ValueVector:
Public Types | |
enum | Type { INT = 0, UINT, SHORT, USHORT, CHAR, UCHAR, FLOAT, DOUBLE, BOOL } |
Type of scalar values. More... | |
Public Member Functions | |
virtual | ~ValueVector () |
Destructor. | |
virtual void | serialize (OutputStream *stream) const =0 |
Serialize this vector to a stream, write the type that call serializeSpecified. | |
virtual void | serializeSpecified (OutputStream *stream) const =0 |
Serialize the values of this vector to a stream, write the length then each value. | |
virtual void | deserializeSpecified (InputStream *stream)=0 |
Deserialize the values of this vector form a stream, the type has already been read because the vector is already created. | |
virtual std::string | toString (unsigned index) const =0 |
Get value index to a string. | |
virtual void | fromString (unsigned index, const std::string &s)=0 |
Set value index from a string s. | |
virtual Type | getType (void) const =0 |
Return the type of the vector. | |
virtual Size | size (void) const =0 |
Return the length of the vector. | |
Static Public Member Functions | |
static ValueVector * | newOfType (Type type, Size size=0) |
Create a new ValueVector of Type type. | |
static ValueVector * | deserialize (InputStream *stream) |
Deserialize a vector from a stream and return it. First read the type, then create a new vector with newOfType, then call deserializeSpecified on the newly created vector. |
|