33 lines
728 B
C++
33 lines
728 B
C++
#include <string>
|
|
#include <list>
|
|
#include <iostream>
|
|
#include <thread>
|
|
#include <ecal/ecal.h>
|
|
#include "RTSMonitoringTask.h"
|
|
|
|
|
|
|
|
class RTCreateMonitoring
|
|
{
|
|
private:
|
|
/* data */
|
|
|
|
std::shared_ptr<RTSMonitoringTask> rtsMonTask;
|
|
|
|
|
|
public:
|
|
RTCreateMonitoring(std::shared_ptr<RTSMonitoringTask> rtsMonTask) {
|
|
|
|
this->rtsMonTask = rtsMonTask;
|
|
}
|
|
|
|
int operator()(const std::string& method_, const std::string& req_type_, const std::string& resp_type_ , const std::string& request_, std::string& response_) {
|
|
//make data from json
|
|
|
|
bool res = true; //this->rtsMonTask.CreateMonitoring(id, name, samplerate, sampleperiod, downtime, status);
|
|
return res ? 0 : -1;
|
|
}
|
|
};
|
|
|
|
|