vezs-example: update experiment for new VEZS lecture
Change-Id: Ifea2169ceb83135e6e53663d077f8f574539f512
This commit is contained in:
24
src/experiments/vezs-example/campaign.hpp
Normal file
24
src/experiments/vezs-example/campaign.hpp
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef __KESOGCCAMPAIGN_HPP__
|
||||
#define __KESOGCCAMPAIGN_HPP__
|
||||
|
||||
#include "cpn/DatabaseCampaign.hpp"
|
||||
#include "comm/ExperimentData.hpp"
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include "vezs.pb.h"
|
||||
|
||||
|
||||
class VEZSExperimentData : public fail::ExperimentData {
|
||||
public:
|
||||
VEZSProtoMsg msg;
|
||||
VEZSExperimentData() : fail::ExperimentData(&msg) {}
|
||||
};
|
||||
|
||||
|
||||
class VEZSCampaign : public fail::DatabaseCampaign {
|
||||
virtual const google::protobuf::Descriptor * cb_result_message()
|
||||
{ return google::protobuf::DescriptorPool::generated_pool()->FindMessageTypeByName("VEZSProtoMsg"); }
|
||||
|
||||
virtual void cb_send_pilot(DatabaseCampaignMessage pilot);
|
||||
};
|
||||
|
||||
#endif // __KESOGCCAMPAIGN_HPP__
|
||||
Reference in New Issue
Block a user