| 86 | } |
| 87 | |
| 88 | std::tuple<unsigned, std::string> BaseGenerator::generateNamespaces(const std::string& ifaceName) const |
| 89 | { |
| 90 | std::stringstream ss{ifaceName}; |
| 91 | std::ostringstream body; |
| 92 | unsigned count{0}; |
| 93 | |
| 94 | // prints the namespaces X and Y defined with <interface name="X.Y.Z"> |
| 95 | while (ss.str().find('.', ss.tellg()) != std::string::npos) |
| 96 | { |
| 97 | std::string nspace; |
| 98 | getline(ss, nspace, '.'); |
| 99 | nspace = mangle_name(nspace); |
| 100 | body << "namespace " << nspace << " {" << endl; |
| 101 | ++count; |
| 102 | } |
| 103 | body << endl; |
| 104 | |
| 105 | return std::make_tuple(count, body.str()); |
| 106 | } |
| 107 | |
| 108 | |
| 109 | std::tuple<std::string, std::string, std::string, std::string> BaseGenerator::argsToNamesAndTypes(const Nodes& args, bool async) const |
nothing calls this directly
no test coverage detected