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

#include <Strategies.hpp>

+ Inheritance diagram for kaa::ArrayProcessStrategy:
+ Collaboration diagram for kaa::ArrayProcessStrategy:

Public Member Functions

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

Detailed Description

Strategy to process an array.

Definition at line 83 of file Strategies.hpp.

Constructor & Destructor Documentation

kaa::ArrayProcessStrategy::ArrayProcessStrategy ( boost::function< bool(uuid_t)>  isSubscribed,
boost::function< void(uuid_t, boost::shared_ptr< ICommonRecord >)>  subscribe,
boost::function< void(uuid_t)>  unsubscribe 
)
inline

Definition at line 85 of file Strategies.hpp.

Member Function Documentation

void kaa::ArrayProcessStrategy::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.


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