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

#include <EmptyDeltaType.hpp>

+ Inheritance diagram for kaa::EmptyDeltaType:
+ Collaboration diagram for kaa::EmptyDeltaType:

Public Member Functions

virtual bool isDefault ()
 
virtual bool isReset ()
 
virtual const DeltaValuegetNewValue ()
 
virtual const RemovedItemsgetRemovedItems ()
 
virtual const AddedItemsgetAddedItems ()
 
virtual std::string toString () const
 
- 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

Definition at line 28 of file EmptyDeltaType.hpp.

Member Function Documentation

virtual const AddedItems& kaa::EmptyDeltaType::getAddedItems ( )
inlinevirtual

Retrieves list of added items

Returns
list of added items {IConfigurationDelta} for complex items, IDeltaType for others), empty list if there is no added items (or field is not array)

Implements kaa::IDeltaType.

Reimplemented in kaa::AddedItemsDeltaType.

Definition at line 68 of file EmptyDeltaType.hpp.

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

Retrieves new field value

Returns
DeltaValue with specific type or empty one if there is no new value (or field is array)

Implements kaa::IDeltaType.

Reimplemented in kaa::ValueDeltaType.

Definition at line 50 of file EmptyDeltaType.hpp.

virtual const RemovedItems& kaa::EmptyDeltaType::getRemovedItems ( )
inlinevirtual

Retrieves list of removed editable items

Returns
list which contains handlers (DeltaHandlerId) of removed items, list is empty if there is no removed items (or field is not array)

Implements kaa::IDeltaType.

Reimplemented in kaa::RemovedItemsDeltaType.

Definition at line 59 of file EmptyDeltaType.hpp.

virtual bool kaa::EmptyDeltaType::isDefault ( )
inlinevirtual

Tells if the field was set to default value

Returns
true if the field set to default, false otherwise

Implements kaa::IDeltaType.

Reimplemented in kaa::DefaultDeltaType.

Definition at line 34 of file EmptyDeltaType.hpp.

virtual bool kaa::EmptyDeltaType::isReset ( )
inlinevirtual

Tells if the container field was cleared

Returns
true if the container field is cleared, false if not (or field is not array)

Implements kaa::IDeltaType.

Reimplemented in kaa::ResetDeltaType.

Definition at line 42 of file EmptyDeltaType.hpp.

virtual std::string kaa::EmptyDeltaType::toString ( ) const
inlinevirtual

Retrieves string representation of empty delta type

Returns
String representation

Implements kaa::IDeltaType.

Reimplemented in kaa::AddedItemsDeltaType, kaa::RemovedItemsDeltaType, kaa::ValueDeltaType, kaa::DefaultDeltaType, and kaa::ResetDeltaType.

Definition at line 77 of file EmptyDeltaType.hpp.


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