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

#include <DefaultConfigurationDelta.hpp>

+ Inheritance diagram for kaa::DefaultConfigurationDelta:
+ Collaboration diagram for kaa::DefaultConfigurationDelta:

Public Member Functions

 DefaultConfigurationDelta ()
 
 DefaultConfigurationDelta (const DeltaHandlerId &handlerId)
 
virtual DeltaHandlerId getHandlerId ()
 
virtual bool hasChanged (const std::string &field)
 
virtual DeltaTypePtr getDeltaType (const std::string &field)
 
virtual std::string toString () const
 
void updateFieldDeltaType (const std::string &field, DeltaTypePtr type)
 
- Public Member Functions inherited from kaa::IConfigurationDelta
virtual ~IConfigurationDelta ()
 

Detailed Description

Definition at line 30 of file DefaultConfigurationDelta.hpp.

Constructor & Destructor Documentation

kaa::DefaultConfigurationDelta::DefaultConfigurationDelta ( )
inline

Default constructor Set delta handler id to default value, i.e. 0

Definition at line 36 of file DefaultConfigurationDelta.hpp.

kaa::DefaultConfigurationDelta::DefaultConfigurationDelta ( const DeltaHandlerId handlerId)
inline

Constructor

Parameters
handlerIddelta handler id

Definition at line 42 of file DefaultConfigurationDelta.hpp.

Member Function Documentation

DeltaTypePtr kaa::DefaultConfigurationDelta::getDeltaType ( const std::string &  field)
inlinevirtual

Retrieves the delta type of the given field

Parameters
fieldthe name of the field
Returns
delta type of the field, or null if the field was not changed

Implements kaa::IConfigurationDelta.

Definition at line 87 of file DefaultConfigurationDelta.hpp.

virtual DeltaHandlerId kaa::DefaultConfigurationDelta::getHandlerId ( )
inlinevirtual

Retrieves handler id of the current delta

Returns
handler id of this delta, id would be set to 0 if delta hasn't delta id

Implements kaa::IConfigurationDelta.

Definition at line 49 of file DefaultConfigurationDelta.hpp.

virtual bool kaa::DefaultConfigurationDelta::hasChanged ( const std::string &  field)
inlinevirtual

Tells if the field was changed

Parameters
fieldthe name of the field
Returns
true if the field was changed, false otherwise

Implements kaa::IConfigurationDelta.

Definition at line 58 of file DefaultConfigurationDelta.hpp.

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

Retrieves JSON representation of the inner data

Returns
String representation

Implements kaa::IConfigurationDelta.

Definition at line 98 of file DefaultConfigurationDelta.hpp.

void kaa::DefaultConfigurationDelta::updateFieldDeltaType ( const std::string &  field,
DeltaTypePtr  type 
)
inline

Add new delta pair (field name-delta type) to an inner storage

Definition at line 78 of file DefaultConfigurationDelta.hpp.


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