See header for documentation. */
| 127 | |
| 128 | /* See header for documentation. */ |
| 129 | void TraceNode::add_attrib( |
| 130 | std::string type, |
| 131 | std::string key, |
| 132 | std::string value |
| 133 | ) { |
| 134 | (void)type; |
| 135 | |
| 136 | size_t depth = g_TraceLog->get_depth(); |
| 137 | size_t indent = (depth * 2) * g_trace_indent; |
| 138 | auto& out = g_TraceLog->m_file; |
| 139 | bool comma = m_attrib_count; |
| 140 | m_attrib_count++; |
| 141 | |
| 142 | if (comma) |
| 143 | { |
| 144 | out << ','; |
| 145 | } |
| 146 | |
| 147 | out << '\n'; |
| 148 | out << std::string(indent, ' ') << "[ " |
| 149 | << "\"" << key << "\", " |
| 150 | << value << " ]"; |
| 151 | } |
| 152 | |
| 153 | /* See header for documentation. */ |
| 154 | TraceNode::~TraceNode() |
no test coverage detected