40 process(
const EMANERemoteControlPortAPI::Request::Update::StatisticTableClear & statisticTableClear,
41 std::uint32_t u32Sequence,
42 std::uint32_t u32Reference)
44 std::vector<std::string> names;
46 for(
int i = 0; i < statisticTableClear.names_size(); ++i)
48 names.push_back(statisticTableClear.names(i));
57 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_UPDATE);
59 auto pUpdate = response.mutable_update();
65 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_ERROR);
67 auto pError = response.mutable_error();
69 pError->set_type(EMANERemoteControlPortAPI::Response::Error::TYPE_ERROR_PARAMETER);
71 pError->set_description(exp.
what());
74 response.set_reference(u32Reference);
76 response.set_sequence(u32Sequence);
78 std::string sSerialization;
80 if(!response.SerializeToString(&sSerialization))
85 return sSerialization;
int TYPE_UPDATE_STATISTICTABLECLEAR
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
static std::string process(const EMANERemoteControlPortAPI::Request::Update::StatisticTableClear &statisticTableClear, std::uint32_t u32Sequence, std::uint32_t u32Reference)
const char * what() const
RegistrarException is thrown when an exception occurs during registration.
static StatisticService * instance()
void clearTable(BuildId, const std::vector< std::string > &names) const