| 65 | } |
| 66 | |
| 67 | std::string BaseGenerator::createHeader(const char* filename, const StubType& stubType) const |
| 68 | { |
| 69 | std::ostringstream head; |
| 70 | head << getHeaderComment(); |
| 71 | |
| 72 | std::string specialization = stubType == StubType::ADAPTOR ? "adaptor" : "proxy"; |
| 73 | |
| 74 | std::string cond_comp{"__sdbuscpp__" + underscorize(filename) |
| 75 | + "__" + specialization + "__H__"}; |
| 76 | |
| 77 | head << "#ifndef " << cond_comp << endl |
| 78 | << "#define " << cond_comp << endl << endl; |
| 79 | |
| 80 | head << "#include <sdbus-c++/sdbus-c++.h>" << endl |
| 81 | << "#include <string>" << endl |
| 82 | << "#include <tuple>" << endl |
| 83 | << endl; |
| 84 | |
| 85 | return head.str(); |
| 86 | } |
| 87 | |
| 88 | std::tuple<unsigned, std::string> BaseGenerator::generateNamespaces(const std::string& ifaceName) const |
| 89 | { |
nothing calls this directly
no test coverage detected