Doxygen
Loading...
Searching...
No Matches
dotnode.h File Reference

#include <src/dotnode.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 101 of file dotnode.cpp.

102{
103 if (tooltip.empty()) return tooltip;
104 DString result;
105 const char *p=tooltip.data();
106 char c = 0;
107 while ((c=*p++))
108 {
109 switch(c)
110 {
111 case '"': result+="\\\""; break;
112 case '\\': result+="\\\\"; break;
113 default: result+=c; break;
114 }
115 }
116 return result;
117}
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:84
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:148
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:157

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

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