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

Method transformXmlToFileImpl

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

* Generate adaptor code - server glue */

Source from the content-addressed store, hash-verified

46 * Generate adaptor code - server glue
47 */
48int AdaptorGenerator::transformXmlToFileImpl(const Document& doc, const char* filename) const
49{
50 Node &root = *(doc.root);
51 Nodes interfaces = root["interface"];
52
53 std::ostringstream code;
54 code << createHeader(filename, StubType::ADAPTOR);
55
56 for (const auto& interface : interfaces)
57 {
58 code << processInterface(*interface);
59 }
60
61 code << "#endif" << endl;
62
63 return writeToFile(filename, code.str());
64}
65
66
67std::string AdaptorGenerator::processInterface(Node& interface) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected