| 165 | } |
| 166 | |
| 167 | int CPPHelper::namespaceOpen(CodeGenerator &cg, const string &classname) { |
| 168 | vector<string> namespaces = splitPackages(classname); |
| 169 | |
| 170 | for (unsigned int i = 0; i < namespaces.size() - 1; i++) { |
| 171 | cg.write("namespace "); |
| 172 | cg.write(namespaces.at(i)); |
| 173 | cg.writeLine(" {"); |
| 174 | cg.increaseIndentation(); |
| 175 | } |
| 176 | return namespaces.size() - 1; |
| 177 | } |
| 178 | |
| 179 | void CPPHelper::namespaceClose(CodeGenerator &cg, int depth) { |
| 180 | for (int i = 0; i < depth; i++) { |
nothing calls this directly
no test coverage detected