|
graph_analysis
|
Manage object (vertex/edge) attributes and allow them to be serialized, e.g., using GEXF or GraphML. More...
#include <AttributeManager.hpp>

Public Types | |
| typedef std::map< std::string, io::AttributeSerializationCallbacks > | AttributeSerializationCallbackMap |
Public Member Functions | |
| void | activateAttributedType (const std::string &typeName) |
| void | registerAttribute (const std::string &typeName, const std::string &attributeName, io::AttributeSerializationCallbacks::serialize_func_t sF, io::AttributeSerializationCallbacks::deserialize_func_t dF, io::AttributeSerializationCallbacks::print_func_t pF) |
| register a new attribute for serialization and deserialization More... | |
| std::vector< std::string > | getAttributeNames (const std::string &vertexTypeName) const |
| returns all registered members for the given vertex More... | |
| io::AttributeSerializationCallbacks | getAttributeSerializationCallbacks (const Attribute &attribute) const |
Manage object (vertex/edge) attributes and allow them to be serialized, e.g., using GEXF or GraphML.
| typedef std::map<std::string, io::AttributeSerializationCallbacks> graph_analysis::AttributeManager::AttributeSerializationCallbackMap |
|
inline |
| std::vector< std::string > graph_analysis::AttributeManager::getAttributeNames | ( | const std::string & | vertexTypeName | ) | const |
returns all registered members for the given vertex
| vertexTypeName | the class Name (normally equals Vertex::getClassName() |
| io::AttributeSerializationCallbacks graph_analysis::AttributeManager::getAttributeSerializationCallbacks | ( | const Attribute & | attribute | ) | const |
| typeName | the class Name (normally equals Vertex::getClassName() |
| attributeName | arbitrary unique name for the attribute that should be rerieved |
| std::invalid_argument | if type or callback is not known |
| void graph_analysis::AttributeManager::registerAttribute | ( | const std::string & | typeName, |
| const std::string & | attributeName, | ||
| io::AttributeSerializationCallbacks::serialize_func_t | sF, | ||
| io::AttributeSerializationCallbacks::deserialize_func_t | dF, | ||
| io::AttributeSerializationCallbacks::print_func_t | pF | ||
| ) |
register a new attribute for serialization and deserialization
| typeName | the class Name (normally equals Vertex::getClassName() |
| attributeName | arbitrary unique name for the attribute that should added |
| sF | Serialization function |
| dF | DeSerialization function |
| pF | PrintFunction |
1.8.17