23 #define ARILES2_VISITOR_INCLUDED_graphviz
73 NodeOptions(
const std::string &
id,
const std::string &label,
const std::string &options)
116 explicit Visitor(
const std::string &file_name);
117 explicit Visitor(std::ostream &output_stream);
123 void endRoot(
const std::string &name);
129 void startArray(
const std::size_t size,
const bool compact =
false);
134 template <
class t_Entry>
143 #define ARILES2_BASIC_TYPE(type) void writeElement(const type &element, const Parameters ¶m);
148 #undef ARILES2_BASIC_TYPE
157 #define ARILES2_NAMED_ENTRY_graphviz(v, entry, name) visitor.visitMapEntry(entry, #name, parameters);
158 #define ARILES2_PARENT_graphviz(v, entry)
159 #define ARILES2_VISIT_graphviz \
160 template <class t_Visitor> \
162 t_Visitor &visitor, \
163 const typename t_Visitor::Parameters ¶meters, \
164 ARILES2_IS_BASE_ENABLER(ariles2::graphviz::Visitor, t_Visitor)) const \
166 CPPUT_TRACE_FUNCTION; \
167 CPPUT_UNUSED_ARG(visitor); \
168 CPPUT_UNUSED_ARG(parameters); \
169 arilesVisitParents(visitor, parameters); \
170 ARILES2_ENTRIES(graphviz) \
173 #define ARILES2_METHODS_graphviz ARILES2_METHODS(graphviz, ARILES2_EMPTY_MACRO, const)
174 #define ARILES2_BASE_METHODS_graphviz ARILES2_BASE_METHODS(graphviz)
NodeOptions(const std::string &id)
NodeOptions(const std::string &id, const std::string &label)
NodeOptions(const std::string &id, const std::string &label, const std::string &options)
virtual NodeOptions getDefaultNodeOptions(const std::string &id, const std::string &label) const
virtual NodeOptions getArilesNodeOptions(const std::string &id, const std::string &label) const
std::string node_options_
std::string graph_options_
Parameters(const bool override_parameters=false)
std::string getDefaultNodeId() const
void startMap(t_Entry &, const Parameters ¶meters)
std::string getDefaultNodeLabel() const
void startRoot(const std::string &name, const Parameters &)
void startMap(const Parameters &, const Parameters::NodeOptions &)
void startMapEntry(const std::string &map_name)
Starts a nested map in the configuration file.
void flush()
Flush the configuration to the output.
void startArray(const std::size_t size, const bool compact=false)
void endRoot(const std::string &name)
bool sloppy_pairs_
Treat key values in maps as entry names if they are strings.
#define ARILES2_COMPLEX_NUMBER_TYPES_LIST
#define ARILES2_BASIC_TYPES_LIST
#define CPPUT_MACRO_SUBSTITUTE(macro)
entry::ConstBase< const Visitor > Base
visitor::Parameters Parameters
ns_graphviz::Visitor Visitor