MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / m_outputNode

Method m_outputNode

apps/PathTreeExport/DOTGraphOutput.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void 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}
159void DOTGraphOutput::m_outputLineWithId(std::string const &id,
160 std::string const &line) {
161 m_idAndOutput.push_back(std::make_pair(id, line));

Callers

nothing calls this directly

Calls 1

strMethod · 0.80

Tested by

no test coverage detected