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

Method DOTGraphOutput

apps/PathTreeExport/DOTGraphOutput.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38DOTNode::DOTNode(std::string const &id) : m_id(id) {}
39
40DOTGraphOutput::DOTGraphOutput(std::ostream &stream)
41 : m_count(0), m_os(stream), m_treeShape(false) {
42 auto &root = m_addNode("/");
43 std::ostringstream os;
44 os << root.getID() << "[shape=circle, label=\"root\"];";
45 m_outputLineWithId(root.getID(), os.str());
46}
47DOTGraphOutput::~DOTGraphOutput() {
48 m_os << "digraph {\n";
49 m_os << "rankdir = LR\n";

Callers

nothing calls this directly

Calls 2

strMethod · 0.80
getIDMethod · 0.45

Tested by

no test coverage detected