| 177 | } |
| 178 | |
| 179 | DotNode::DotNode(std::ostream& stream, LayerGuid nodeId, const char* label) |
| 180 | : DotBase(stream) |
| 181 | { |
| 182 | std::stringstream ss; |
| 183 | ss << Indent(4) << nodeId; |
| 184 | |
| 185 | GetStream() << ss.str() << " "; |
| 186 | |
| 187 | m_Contents = std::make_unique<NodeContent>(stream); |
| 188 | m_Attributes = std::make_unique<DotAttributeSet>(stream); |
| 189 | |
| 190 | if (std::strlen(label) != 0) |
| 191 | { |
| 192 | m_Contents->SetName(label); |
| 193 | } |
| 194 | else |
| 195 | { |
| 196 | m_Contents->SetName("<noname>"); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | DotNode::~DotNode() |
| 201 | { |