client-cpp  0.0.1-SNAPSHOT
kaa::ValueDeltaType Class Reference

#include <ValueDeltaType.hpp>

+ Inheritance diagram for kaa::ValueDeltaType:
+ Collaboration diagram for kaa::ValueDeltaType:

Public Member Functions

 ValueDeltaType (const IDeltaType::DeltaValue &data, const avro::Type &type)
 
virtual const DeltaValuegetNewValue ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from kaa::EmptyDeltaType
virtual bool isDefault ()
 
virtual bool isReset ()
 
virtual const RemovedItemsgetRemovedItems ()
 
virtual const AddedItemsgetAddedItems ()
 
- Public Member Functions inherited from kaa::IDeltaType
virtual ~IDeltaType ()
 

Additional Inherited Members

- Public Types inherited from kaa::IDeltaType
typedef boost::any DeltaValue
 
typedef std::list< DeltaValueAddedItems
 
typedef std::list< DeltaHandlerIdRemovedItems
 

Detailed Description

This delta type may consist of either compound item (IConfigurationDelta) or primitive avro's type (BOOL, ENUM, INT, FLOAT, DOUBLE, STRING, BYTE or FIXED).

Definition at line 33 of file ValueDeltaType.hpp.

Constructor & Destructor Documentation

kaa::ValueDeltaType::ValueDeltaType ( const IDeltaType::DeltaValue data,
const avro::Type &  type 
)
inline

Constructor

Parameters
datadata to be stored
typeavro type of data

Definition at line 40 of file ValueDeltaType.hpp.

Member Function Documentation

virtual const DeltaValue& kaa::ValueDeltaType::getNewValue ( )
inlinevirtual

Retrieves new field value

Returns
DeltaValue consist of new value

Reimplemented from kaa::EmptyDeltaType.

Definition at line 47 of file ValueDeltaType.hpp.

std::string kaa::ValueDeltaType::toString ( ) const
inlinevirtual

Retrieves JSON representation for compounds or value for the primitive type

Returns
String representation

Reimplemented from kaa::EmptyDeltaType.

Definition at line 62 of file ValueDeltaType.hpp.


The documentation for this class was generated from the following file: