| 145 | } |
| 146 | |
| 147 | void DOTGraphOutput::m_outputNode(std::string const &label, |
| 148 | std::string const &id, |
| 149 | std::string const &type) { |
| 150 | using namespace osvr::common; |
| 151 | std::ostringstream os; |
| 152 | os << id << "[shape=box,label=\"" << label << "\""; |
| 153 | if (type == elements::getTypeName<elements::SensorElement>()) { |
| 154 | os << ",style=filled,color=green"; |
| 155 | } |
| 156 | os << "];"; |
| 157 | m_outputLineWithId(id, os.str()); |
| 158 | } |
| 159 | void DOTGraphOutput::m_outputLineWithId(std::string const &id, |
| 160 | std::string const &line) { |
| 161 | m_idAndOutput.push_back(std::make_pair(id, line)); |