29 #ifndef HPP_MANIPULATION_GRAPH_DOT_HH 30 #define HPP_MANIPULATION_GRAPH_DOT_HH 38 namespace manipulation {
43 typedef std::pair<std::string, std::string>
Pair;
44 typedef std::map<std::string, std::string>
Map;
50 attr.insert(
Pair(K,
"\"" + V +
"\""));
52 inline void insert(
const std::string& K,
const std::string& V) {
53 attr.insert(
Pair(K, V));
55 std::string&
operator[](
const std::string& K) {
return attr[K]; }
57 : separator(
", "), openSection(
"["), closeSection(
"]"), attr(){};
66 inline std::string
toStr()
const {
69 for (TooltipLineVector::const_iterator it = v.begin(); it != v.end();
73 if (i > 0) ss << tooltipendl;
77 inline void addLine(
const std::string& l) { v.push_back(l); }
80 std::ostream&
insertComments(std::ostream& os,
const std::string& c);
88 #endif // HPP_MANIPULATION_GRAPH_DOT_HH
std::string closeSection
Definition: dot.hh:46
std::ostream & insertComments(std::ostream &os, const std::string &c)
std::string & operator[](const std::string &K)
Definition: dot.hh:55
std::map< std::string, std::string > Map
Definition: dot.hh:44
void insert(const std::string &K, const std::string &V)
Definition: dot.hh:52
std::pair< std::string, std::string > Pair
Definition: dot.hh:43
std::string openSection
Definition: dot.hh:46
std::string separator
Definition: dot.hh:46
DrawingAttributes()
Definition: dot.hh:56
void insertWithQuote(const std::string &K, const std::string &V)
Definition: dot.hh:49
Map attr
Definition: dot.hh:47
std::ostream & operator<<(std::ostream &os, const DrawingAttributes &da)