27 #include "../../common/StringUtils.h"
28 #include "../../common/Translator.h"
29 #include "../Config.h"
30 #include "../Exception.h"
63 throw Exception(
TR_GRAPH(
"Could not find concrete factory! Check if it was initialized!"));
86 throw Exception(
TR_GRAPH(
"Could not find concrete factory! Check if it was initialized!"));
96 : te::common::AbstractFactory<te::graph::
AbstractGraph, std::string>(factoryKey)
This is the abstract factory for Graphs.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
static AbstractGraph * make()
It creates and returns an empty graph with default graph type.
virtual te::graph::GraphMetadata * getMetadata()=0
Function used to access the graph metadata.
std::string Convert2UCase(const std::string &value)
It converts a string to upper case.
TFACTORY * find(const TFACTORYKEY &factoryKey) const
It looks for a given factory identified by a key.
This class represents a dictionary of factories.
#define TR_GRAPH(message)
It marks a string in order to get translated. This is a special mark used in the Graph module of Terr...
static TPRODUCT * make(const TFACTORYKEY &factoryKey)
It creates an object with the appropriated factory.
AbstractGraphFactory(const std::string &factoryKey)
Constructor.
This is the abstract factory for Graphs.
#define TE_DEFAULT_GRAPH_TYPE
This definition is used to set the default graph type.
virtual AbstractGraph * iOpen(const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo)=0
This method must be re-implemented by subclasses in order to have a finner control for the graph obje...
static dictionary_type & getDictionary()
It returns a reference to the internal dictionary of concrete factories.
virtual AbstractGraph * create(const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo)=0
This method must be implemented by subclasses (graph types).
static AbstractGraph * open(const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo)
It opens a graph with the given parameters and default graph type.
void setType(std::string graphType)
Set the graph type (defined in Enums file)
Class used to define the graph metadata informations.