client-cpp
0.0.1-SNAPSHOT
|
#include <Strategies.hpp>
Public Member Functions | |
RecordProcessStrategy (boost::function< bool(uuid_t)> isSubscribed, boost::function< void(uuid_t, boost::shared_ptr< ICommonRecord >)> subscribe, boost::function< void(uuid_t)> unsubscribe, bool isRootRecord=false) | |
void | run (boost::shared_ptr< ICommonRecord > parent, const std::string &field, const avro::GenericDatum &datum) |
Public Member Functions inherited from kaa::AbstractStrategy | |
virtual | ~AbstractStrategy () |
Strategy to process a record. Can be used for processing both a "root" record (data should not be held in the record as the field, but overwritten as separate object) and a simple record as the field.
Definition at line 57 of file Strategies.hpp.
|
inline |
Definition at line 59 of file Strategies.hpp.
|
virtual |
Routine for processing avro datum and insert field into a record by given name.
parent | Record which has to contain data represented in datum. |
field | Name of a field in a given record. |
datum | Avro datum containing data to be converted. |
Implements kaa::AbstractStrategy.