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

Method transformXmlToFileImpl

tools/xml2cpp-codegen/ProxyGenerator.cpp:51–67  ·  view source on GitHub ↗

* Generate proxy code - client glue */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected