Doxygen
Loading...
Searching...
No Matches
dotnode.h File Reference
#include <vector>
#include <map>
#include <deque>
#include <iostream>
#include "types.h"
#include "dotgraph.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

QCString escapeTooltip (const QCString &tooltip)
 

Typedef Documentation

◆ DotNodeRefVector

using DotNodeRefVector = std::vector<DotNode*>

Definition at line 63 of file dotnode.h.

◆ EdgeInfoVector

using EdgeInfoVector = std::vector<EdgeInfo>

Definition at line 64 of file dotnode.h.

Function Documentation

◆ escapeTooltip()

QCString escapeTooltip ( const QCString & tooltip)

Definition at line 99 of file dotnode.cpp.

100{
101 if (tooltip.isEmpty()) return tooltip;
102 QCString 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}
This is an alternative implementation of QCString.
Definition qcstring.h:101
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159

References QCString::data(), and QCString::isEmpty().

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