Include diagram JSON generator.
Definition at line 50 of file include_diagram_generator.h.
|
| generator (diagram_config &config, diagram_model &model) |
|
std::vector< std::pair< std::string, common::generators::graphml::property_type > > | node_property_names () const override |
|
void | generate (const source_file &e, graphml_node_t &parent) const |
| Generate diagram element.
|
|
void | generate_top_level_elements (graphml_node_t &parent) const override |
|
| ~generator () override=default |
|
virtual std::vector< std::pair< std::string, property_type > > | graph_property_names () const |
|
virtual std::vector< std::pair< std::string, property_type > > | node_property_names () const |
|
virtual std::vector< std::pair< std::string, property_type > > | edge_property_names () const |
|
void | generate (std::ostream &ostr) const override |
| Generate diagram.
|
|
void | generate_diagram (graphml_node_t &parent) const |
| Generate diagram model.
|
|
virtual void | generate_top_level_elements (graphml_node_t &parent) const =0 |
| In a nested diagram, generate the top level elements.
|
|
template<typename T > |
void | generate_notes (const T &e, graphml_node_t &parent) const |
| Generate any notes to be attached to diagram elements.
|
|
void | generate_metadata (graphml_t &parent) const |
| Generate metadata element with diagram metadata.
|
|
virtual void | generate (const model::package &p, graphml_node_t &parent) const |
| Generate diagram package.
|
|
virtual void | generate_relationships (graphml_node_t &parent) const |
| Generate all relationships in the diagram.
|
|
virtual void | generate_relationships (const model::diagram_element &c, graphml_node_t &parent) const |
| Generate all relationships originating at a diagram element.
|
|
template<typename T > |
void | generate_link (pugi::xml_node &node, const T &c) const |
|
const property_keymap_t & | graph_properties () const |
|
const property_keymap_t & | node_properties () const |
|
const property_keymap_t & | edge_properties () const |
|
pugi::xml_node | make_node (graphml_node_t &parent, const std::string &id) const |
|
pugi::xml_node | make_graph (graphml_node_t &parent, const std::string &id) const |
|
pugi::xml_node | make_subgraph (graphml_node_t &parent, const std::string &id, const std::string &name="", const std::string &type="") const |
|
void | add_data (pugi::xml_node &node, const std::string &key, const std::string &value, bool cdata=false) const |
|
void | add_cdata (pugi::xml_node &node, const std::string &key, const std::string &value) const |
|
| generator (ConfigType &config, DiagramType &model) |
| Constructor.
|
|
virtual | ~generator ()=default |
|
virtual void | generate (std::ostream &ostr) const =0 |
| Generate diagram.
|
|
const ConfigType & | config () const |
| Get reference to diagram config.
|
|
const DiagramType & | model () const |
| Get reference to diagram model.
|
|
std::optional< std::pair< std::string, std::string > > | get_link_pattern (const common::model::source_location &sl) const |
|
std::optional< std::pair< std::string, std::string > > | get_tooltip_pattern (const common::model::source_location &sl) const |
|
std::optional< std::string > | render_link (const common::model::diagram_element &e) const |
|
std::optional< std::string > | render_link (const common::model::relationship &e) const |
|
std::optional< std::string > | render_tooltip (const common::model::diagram_element &e) const |
|
std::optional< std::string > | render_tooltip (const common::model::relationship &e) const |
|
void | init_context () |
| Initialize diagram Jinja context.
|
|
void | update_context () const |
| Update diagram Jinja context.
|
|
void | init_env () |
|
const inja::json & | context () const |
|
inja::Environment & | env () const |
|