Public Member Functions | Protected Attributes | Friends

openjaus::model::fields::Variant Class Reference

This is a brief description. More...

#include <Variant.h>

Inherits openjaus::model::fields::ComplexField, openjaus::model::fields::Field, and openjaus::system::Transportable.

Inherited by openjaus::core::QueryEventsVariant.

List of all members.

Public Member Functions

 Variant ()
virtual ~Variant ()
long getIndex () const
 Accessor to get the value of index.
bool setIndex (long index)
 Accessor to set value of index.
TypesUnsigned getTypeCount () const
 Accessor to get the value of typeCount.
bool setTypeCount (TypesUnsigned typeCount)
 Accessor to set value of typeCount.
FieldgetValue () const
 Accessor to get the value of value.
bool setValue (Field *value)
 Accessor to set value of value.
const std::vector< Field * > & getItems () const
 Accessor to get the value of items.
bool setItems (const Field &items)
 Accessor to set value of items.
virtual int to (system::Buffer *dst)
 Operation to.
virtual int from (system::Buffer *src)
 Operation from.
virtual int length ()
 Serializes object to internal transport buffer.
std::string toString () const

Protected Attributes

long index
TypesUnsigned typeCount
Fieldvalue
std::vector< Field * > items

Friends

std::ostream & operator<< (std::ostream &output, const Variant &object)

Detailed Description

Detailed description.

Author:
Name (name@email.com)

Constructor & Destructor Documentation

openjaus::model::fields::Variant::Variant (  ) 
openjaus::model::fields::Variant::~Variant (  )  [virtual]

Member Function Documentation

int openjaus::model::fields::Variant::from ( system::Buffer src  )  [virtual]
Parameters:
src 

Implements openjaus::system::Transportable.

Reimplemented in openjaus::core::QueryEventsVariant.

long openjaus::model::fields::Variant::getIndex (  )  const
const std::vector< Field * > & openjaus::model::fields::Variant::getItems (  )  const
TypesUnsigned openjaus::model::fields::Variant::getTypeCount (  )  const
Field * openjaus::model::fields::Variant::getValue (  )  const
int openjaus::model::fields::Variant::length (  )  [virtual]
bool openjaus::model::fields::Variant::setIndex ( long  index  ) 
Parameters:
index The value of the new index.
bool openjaus::model::fields::Variant::setItems ( const Field items  ) 
Parameters:
items The value of the new items.
bool openjaus::model::fields::Variant::setTypeCount ( TypesUnsigned  typeCount  ) 
Parameters:
typeCount The value of the new typeCount.
bool openjaus::model::fields::Variant::setValue ( Field value  ) 
Parameters:
value The value of the new value.
int openjaus::model::fields::Variant::to ( system::Buffer dst  )  [virtual]
Parameters:
dst 

Implements openjaus::system::Transportable.

Reimplemented in openjaus::core::QueryEventsVariant.

std::string openjaus::model::fields::Variant::toString (  )  const

Reimplemented from openjaus::system::Transportable.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const Variant object 
) [friend]

Member Data Documentation

std::vector< Field* > openjaus::model::fields::Variant::items [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines