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

Ishtar::ValueVector Struct Reference

#include <services.h>

Inheritance diagram for Ishtar::ValueVector:

Ishtar::ValueVectorTemplate< T > Ishtar::ValueVectorTemplate< UInt8 > Ishtar::CharValueVector List of all members.

Detailed Description

A vector of scalar values.


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 ValueVectornewOfType (Type type, Size size=0)
 Create a new ValueVector of Type type.
static ValueVectordeserialize (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.


Member Enumeration Documentation

enum Ishtar::ValueVector::Type
 

Type of scalar values.

Enumeration values:
INT  32 bits signed integer, corresponds to Int32
UINT  32 bits unsigned integer, corresponds to UInt32
SHORT  16 bits signed integer, corresponds to Int16
USHORT  16 bits unsigned integer, corresponds to UInt16
CHAR  8 bits signed integer, corresponds to Int8
UCHAR  8 bits unsigned integer, corresponds to UInt8
FLOAT  32 bits floating point value, corresponds to float
DOUBLE  64 bits double precision floating point value, corresponds to double
BOOL  true/false value, serialized on a UCHAR


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