17 #ifndef FIELDPROCESSOR_HPP_
18 #define FIELDPROCESSOR_HPP_
29 FieldProcessor(boost::shared_ptr<ICommonRecord> parent,
const std::string &field)
30 : strategy_(NULL), parentRecord_(parent), field_(field) {}
39 void process(
const avro::GenericDatum &d) {
40 strategy_->
run(parentRecord_, field_, d);
45 boost::shared_ptr<ICommonRecord> parentRecord_;
46 const std::string &field_;
void setStrategy(AbstractStrategy *strategy)
FieldProcessor(boost::shared_ptr< ICommonRecord > parent, const std::string &field)
void process(const avro::GenericDatum &d)
virtual void run(boost::shared_ptr< ICommonRecord > parent, const std::string &field, const avro::GenericDatum &datum)=0