Mapping of GraphML node properties and their keys. Necessary to generate the <key> property definition elements at the beginning of GraphML document.
Definition at line 69 of file generator.h.
#include <generator.h>
Public Member Functions | |
property_keymap_t (std::string prefix) | |
std::pair< std::string, property_type > | add (const std::string &name, property_type pt=property_type::kString) |
std::optional< std::pair< std::string, property_type > > | get (const std::string &name) const |
Private Attributes | |
uint64_t | next_data_key_id_ {0} |
std::string | prefix_ |
key_property_map_t | map_ |
clanguml::common::generators::graphml::property_keymap_t::property_keymap_t | ( | std::string | prefix | ) |
Definition at line 44 of file generator.cc.
std::pair< std::string, property_type > clanguml::common::generators::graphml::property_keymap_t::add | ( | const std::string & | name, |
property_type | pt = property_type::kString |
||
) |
Definition at line 49 of file generator.cc.
auto clanguml::common::generators::graphml::property_keymap_t::get | ( | const std::string & | name | ) | const |
Definition at line 56 of file generator.cc.
|
private |
Definition at line 83 of file generator.h.
|
private |
Definition at line 80 of file generator.h.
|
private |
Definition at line 82 of file generator.h.