"removed" unneccessary memory-mapping ("Step 0")
cleaned out ExperimentData - now consists only of fsppilot and resultset
resultset now contains bitoffset which is part of result-table's primary key
adapted code to work with msg.fsppilot() instead of ExperimentData-values
Change-Id: I3b310e7a71d4b28479028250cd5722b3b2ce9f8c
25 lines
748 B
C++
25 lines
748 B
C++
#ifndef __WEATHERMONITOR_CAMPAIGN_HPP__
|
|
#define __WEATHERMONITOR_CAMPAIGN_HPP__
|
|
|
|
#include "cpn/DatabaseCampaign.hpp"
|
|
#include "comm/ExperimentData.hpp"
|
|
#include "weathermonitor.pb.h"
|
|
#include <google/protobuf/descriptor.h>
|
|
|
|
class WeatherMonitorExperimentData : public fail::ExperimentData {
|
|
public:
|
|
WeathermonitorProtoMsg msg;
|
|
WeatherMonitorExperimentData() : fail::ExperimentData(&msg) {}
|
|
};
|
|
|
|
class WeatherMonitorCampaign : public fail::DatabaseCampaign {
|
|
virtual const google::protobuf::Descriptor * cb_result_message()
|
|
{
|
|
return google::protobuf::DescriptorPool::generated_pool()->FindMessageTypeByName("WeathermonitorProtoMsg");
|
|
}
|
|
|
|
virtual void cb_send_pilot(DatabaseCampaignMessage pilot);
|
|
};
|
|
|
|
#endif // __WEATHERMONITOR_CAMPAIGN_HPP__
|