43 #include "remotecontrolportapi.pb.h" 47 std::uint32_t u32Sequence)
50 if(request.type() == EMANERemoteControlPortAPI::Request::TYPE_REQUEST_QUERY)
52 if(request.has_query())
54 const auto & query = request.query();
62 if(query.has_configuration())
69 "Configuration query request malformed: missing configuration message",
76 if(query.has_statistic())
84 "Statistic query request malformed: missing statistic message",
91 if(query.has_statistictable())
98 "Statistic Table query request malformed: missing statisticTable message",
108 "Query request malformed: missing query message",
114 else if(request.type() == EMANERemoteControlPortAPI::Request::TYPE_REQUEST_UPDATE)
116 if(request.has_update())
118 const auto & update = request.update();
122 if(update.has_configuration())
129 "Configuration update request malformed: missing configuration message",
136 if(update.has_statisticclear())
144 "Statistic Table update request malformed: missing statisticClear message",
151 if(update.has_statistictableclear())
159 "Statistic Table Clear update request malformed: missing statisticTableClear message",
166 if(update.has_loglevel())
174 "Log Level update request malformed: missing LogLevel message",
183 "Update request malformed: missing update message",
190 "Request malformed: unknown request type",
static std::string process(const EMANERemoteControlPortAPI::Request::Query::Statistic &statistic, std::uint32_t u32Sequence, std::uint32_t u32Reference)
static std::string process(std::uint32_t u32Sequence, std::uint32_t u32Reference)
int TYPE_UPDATE_STATISTICTABLECLEAR
int TYPE_QUERY_STATISTICTABLE
static std::string process(const EMANERemoteControlPortAPI::Request &request, std::uint32_t u32Sequence)
static std::string process(const EMANERemoteControlPortAPI::Request::Update::StatisticTableClear &statisticTableClear, std::uint32_t u32Sequence, std::uint32_t u32Reference)
int TYPE_UPDATE_CONFIGURATION
static std::string process(const EMANERemoteControlPortAPI::Request::Update::StatisticClear &statisticClear, std::uint32_t u32Sequence, std::uint32_t u32Reference)
int TYPE_UPDATE_STATISTICCLEAR
static std::string serialize(EMANERemoteControlPortAPI::Response::Error::ErrorType type, const std::string &sDescription, std::uint32_t u32Sequence, std::uint32_t u32Reference)
static std::string process(const EMANERemoteControlPortAPI::Request::Query::Configuration &configuration, std::uint32_t u32Sequence, std::uint32_t u32Reference)
static std::string process(const EMANERemoteControlPortAPI::Request::Update::LogLevel &logLevel, std::uint32_t u32Sequence, std::uint32_t u32Reference)
static std::string process(const EMANERemoteControlPortAPI::Request::Update::Configuration &configuration, std::uint32_t u32Sequence, std::uint32_t u32Reference)
static std::string process(const EMANERemoteControlPortAPI::Request::Query::StatisticTable &statisticTable, std::uint32_t u32Sequence, std::uint32_t u32Reference)
int TYPE_QUERY_CONFIGURATION