40 std::uint32_t u32Reference)
46 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_QUERY);
48 auto pQuery = response.mutable_query();
52 auto pManifest = pQuery->mutable_manifest();
54 using Component = EMANERemoteControlPortAPI::Response::Query::Manifest::NEM::Component;
57 for(
const auto & nem : componentMap)
59 auto pNEM = pManifest->add_nems();
61 pNEM->set_id(nem.first);
63 for(
const auto & component : nem.second)
65 auto pComponent = pNEM->add_components();
67 pComponent->set_buildid(std::get<0>(component));
72 Component::TYPE_COMPONENT_PHY :
74 Component::TYPE_COMPONENT_MAC :
76 Component::TYPE_COMPONENT_SHIM:
77 Component::TYPE_COMPONENT_TRANSPORT);
79 pComponent->set_plugin(std::get<2>(component));
83 response.set_reference(u32Reference);
85 response.set_sequence(u32Sequence);
87 std::string sSerialization;
89 if(!response.SerializeToString(&sSerialization))
94 return sSerialization;
static std::string process(std::uint32_t u32Sequence, std::uint32_t u32Reference)
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
const NEMLayerComponentBuildIdMap & getNEMLayerComponentBuildIdMap() const
static BuildIdService * instance()
Generic interface used to configure and control all components.