Doxygen
Loading...
Searching...
No Matches
dotnode.h File Reference
#include <deque>
#include <map>
#include <vector>
#include "dotgraph.h"
#include "types.h"
Include dependency graph for dotnode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EdgeInfo
 Attributes of an edge of a dot graph. More...
class  DotNode
 A node in a dot graph. More...
class  DotNodeMap
class  DotNodeDeque

Typedefs

using DotNodeRefVector = std::vector<DotNode*>
using EdgeInfoVector = std::vector<EdgeInfo>

Functions

DString escapeTooltip (const DString &tooltip)

Typedef Documentation

◆ DotNodeRefVector

using DotNodeRefVector = std::vector<DotNode*>

Definition at line 62 of file dotnode.h.

◆ EdgeInfoVector

using EdgeInfoVector = std::vector<EdgeInfo>

Definition at line 63 of file dotnode.h.

Function Documentation

◆ escapeTooltip()

DString escapeTooltip ( const DString & tooltip)

Definition at line 99 of file dotnode.cpp.

100{
101 if (tooltip.empty()) return tooltip;
102 DString result;
103 const char *p=tooltip.data();
104 char c = 0;
105 while ((c=*p++))
106 {
107 switch(c)
108 {
109 case '"': result+="\\\""; break;
110 case '\\': result+="\\\\"; break;
111 default: result+=c; break;
112 }
113 }
114 return result;
115}
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:152
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition dstring.h:161

References DString::data(), and DString::empty().

Referenced by common_attributes(), and DotNode::writeBox().