| 416 | } |
| 417 | |
| 418 | std::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 | |
| 431 | std::string AdaptorGenerator::propertyAnnotationToFlag(const std::string& annotationValue) const |
| 432 | { |