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

#include <Strategies.hpp>

+ Inheritance diagram for kaa::ArrayResetStrategy:
+ Collaboration diagram for kaa::ArrayResetStrategy:

Public Member Functions

 ArrayResetStrategy (boost::function< bool(uuid_t)> isSubscribed, boost::function< void(uuid_t)> unsubscribe)
 
void run (boost::shared_ptr< ICommonRecord > parent, const std::string &field, const avro::GenericDatum &datum)
 
void unregisterRecord (ICommonRecord &record)
 
void unregisterArray (ICommonArray &record)
 
- Public Member Functions inherited from kaa::AbstractStrategy
virtual ~AbstractStrategy ()
 

Detailed Description

Strategy to reset an array.

Definition at line 104 of file Strategies.hpp.

Constructor & Destructor Documentation

kaa::ArrayResetStrategy::ArrayResetStrategy ( boost::function< bool(uuid_t)>  isSubscribed,
boost::function< void(uuid_t)>  unsubscribe 
)
inline

Definition at line 106 of file Strategies.hpp.

Member Function Documentation

void kaa::ArrayResetStrategy::run ( boost::shared_ptr< ICommonRecord parent,
const std::string &  field,
const avro::GenericDatum &  datum 
)
virtual

Routine for processing avro datum and insert field into a record by given name.

Parameters
parentRecord which has to contain data represented in datum.
fieldName of a field in a given record.
datumAvro datum containing data to be converted.

Implements kaa::AbstractStrategy.

void kaa::ArrayResetStrategy::unregisterArray ( ICommonArray record)
void kaa::ArrayResetStrategy::unregisterRecord ( ICommonRecord record)

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