| 387 | |
| 388 | |
| 389 | void DimBuilder::writeIds(std::ostream& out) |
| 390 | { |
| 391 | out << "enum class Id\n"; |
| 392 | out << "{\n"; |
| 393 | out << " Unknown,\n"; |
| 394 | for (auto di = m_dims.begin(); di != m_dims.end(); ++di) |
| 395 | { |
| 396 | DimSpec& d = *di; |
| 397 | out << " " << d.m_name; |
| 398 | size_t line_size = 4 + d.m_name.size(); |
| 399 | if (di + 1 != m_dims.end()) |
| 400 | { |
| 401 | out << ","; |
| 402 | line_size += 1; |
| 403 | } |
| 404 | out << " ///< \\brief " << d.m_description << "\n" |
| 405 | << std::string(line_size, ' ') << " ///< \\default " << getTypename(d.m_type) << "\n"; |
| 406 | } |
| 407 | out << "};\n"; |
| 408 | out << "typedef std::vector<Id> IdList;\n"; |
| 409 | out << "\n"; |
| 410 | } |
| 411 | |
| 412 | |
| 413 | void DimBuilder::writeDescriptions(std::ostream& out) |
nothing calls this directly
no test coverage detected