This is the concrete factory for the database box loader strategy. More...
#include <BoxLoaderStrategyFactory.h>
Public Types | |
| typedef FactoryDictionary < AbstractFactory < AbstractGraphLoaderStrategy, std::string, std::less < std::string > >, std::string, std::less< std::string > > | dictionary_type |
| typedef AbstractFactory | factory_type |
Public Member Functions | |
| const std::string & | getKey () const |
| It returns the factory key associated to the concreate factory. More... | |
| const std::string & | getType () const |
| Returns the type (name) of this factory. More... | |
| ~BoxLoaderStrategyFactory () | |
| Destructor. More... | |
Static Public Member Functions | |
| static void | finalize () |
| It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ... More... | |
| static const factory_type * | find (const std::string &factoryKey) |
| static dictionary_type & | getDictionary () |
| It returns a reference to the internal dictionary of concrete factories. More... | |
| static void | initialize () |
| It initializes the factory: the singleton instance will be registered in the abstract factory ... More... | |
| static AbstractGraphLoaderStrategy * | make () |
| It creates and returns default graph loader strategy. More... | |
| static AbstractGraphLoaderStrategy * | make (const std::string &lsType) |
| It creates graph loader strategy with the proper type. More... | |
| static AbstractGraphLoaderStrategy * | make (const std::string &lsType, GraphMetadata *gm) |
| It creates graph loader strategy with the proper type. More... | |
Protected Member Functions | |
| BoxLoaderStrategyFactory () | |
| Constructor. More... | |
| te::graph::AbstractGraphLoaderStrategy * | build () |
| Builder Function used to create the class object. More... | |
| te::graph::AbstractGraphLoaderStrategy * | create (GraphMetadata *gm) |
| This method must be implemented by subclasses (load strategy types). More... | |
Protected Attributes | |
| std::string | m_factoryKey |
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More... | |
Static Private Attributes | |
| static BoxLoaderStrategyFactory * | sm_factory |
| Static instance used to register the factory. More... | |
This is the concrete factory for the database box loader strategy.
Definition at line 47 of file BoxLoaderStrategyFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
inline |
Destructor.
Definition at line 52 of file BoxLoaderStrategyFactory.h.
|
protected |
Constructor.
Definition at line 53 of file BoxLoaderStrategyFactory.cpp.
|
protectedvirtual |
Builder Function used to create the class object.
Implements te::common::AbstractFactory< AbstractGraphLoaderStrategy, std::string >.
Definition at line 65 of file BoxLoaderStrategyFactory.cpp.
|
protectedvirtual |
This method must be implemented by subclasses (load strategy types).
| gm | The necessary graph information |
Implements te::graph::AbstractGraphLoaderStrategyFactory.
Definition at line 58 of file BoxLoaderStrategyFactory.cpp.
|
static |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ...
Definition at line 47 of file BoxLoaderStrategyFactory.cpp.
Referenced by te::graph::Module::finalize().
|
staticinherited |
|
staticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
|
inherited |
It returns the factory key associated to the concreate factory.
|
virtual |
Returns the type (name) of this factory.
Implements te::graph::AbstractGraphLoaderStrategyFactory.
Definition at line 36 of file BoxLoaderStrategyFactory.cpp.
References te::graph::Globals::sm_factoryLoaderStrategyTypeBox.
|
static |
It initializes the factory: the singleton instance will be registered in the abstract factory ...
Definition at line 41 of file BoxLoaderStrategyFactory.cpp.
Referenced by te::graph::Module::initialize().
|
staticinherited |
It creates and returns default graph loader strategy.
Definition at line 37 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make(), and TE_DEFAULT_GRAPH_LOADER_STRATEGY_TYPE.
Referenced by te::graph::BidirectionalGraphFactory::create(), te::graph::DirectedGraphFactory::create(), te::graph::GraphFactory::create(), te::graph::UndirectedGraphFactory::create(), te::graph::GraphFactory::iOpen(), te::graph::UndirectedGraphFactory::iOpen(), te::graph::BidirectionalGraphFactory::iOpen(), and te::graph::DirectedGraphFactory::iOpen().
|
staticinherited |
It creates graph loader strategy with the proper type.
| lsType | Type The name of the specific graph loader strategy type to be used to create. |
Definition at line 42 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::Convert2UCase(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make().
|
staticinherited |
It creates graph loader strategy with the proper type.
| lsType | Type The name of the specific graph loader strategy type to be used to create. |
| gm | Pointer to a class that defines the graph metadata |
Definition at line 49 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::Convert2UCase(), te::graph::AbstractGraphLoaderStrategyFactory::create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary(), and TR_GRAPH.
|
protectedinherited |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.
|
staticprivate |
Static instance used to register the factory.
Definition at line 86 of file BoxLoaderStrategyFactory.h.