MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / getAnnotations

Method getAnnotations

tools/xml2cpp-codegen/AdaptorGenerator.cpp:418–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418std::map<std::string, std::string> AdaptorGenerator::getAnnotations( sdbuscpp::xml::Node& node) const
419{
420 std::map<std::string, std::string> result;
421
422 Nodes annotations = (node)["annotation"];
423 for (const auto& annotation : annotations)
424 {
425 result[annotation->get("name")] = annotation->get("value");
426 }
427
428 return result;
429}
430
431std::string AdaptorGenerator::propertyAnnotationToFlag(const std::string& annotationValue) const
432{

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected