aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
gum::dot::DotAttribute Struct Reference

An attribute of a graph, a node or an edge : key="value". More...

#include <dotWriter.h>

Collaboration diagram for gum::dot::DotAttribute:
[legend]

Public Attributes

std::string key
std::string value
bool verbatim {false}

Detailed Description

An attribute of a graph, a node or an edge : key="value".

The value is written between double quotes, in which the double quote, the backslash and the line breaks are escaped (see DotWriter::quote), unless verbatim is true : the value is then written as is, with its own quotes if it needs some. This is needed for an HTML label (<<b>A</b>>) or for a text that uses the escape sequences of graphviz ("left\lright\l").

Definition at line 67 of file dotWriter.h.

Member Data Documentation

◆ key

std::string gum::dot::DotAttribute::key

Definition at line 68 of file dotWriter.h.

Referenced by gum::dot::DotWriter::_attribute_().

◆ value

std::string gum::dot::DotAttribute::value

Definition at line 69 of file dotWriter.h.

Referenced by gum::dot::DotWriter::_attribute_().

◆ verbatim

bool gum::dot::DotAttribute::verbatim {false}

Definition at line 70 of file dotWriter.h.

Referenced by gum::dot::DotWriter::_attribute_().


The documentation for this struct was generated from the following file: