This is the concrete factory for the commung Graph type.  
 More...
#include <GraphFactory.h>
 | 
| void  | getCreationalParameters (std::vector< std::pair< std::string, std::string > > ¶ms) const | 
|   | It returns the list of parameters accepted as graph info.  More...
  | 
|   | 
| 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...
  | 
|   | 
|   | ~GraphFactory () | 
|   | Destructor.  More...
  | 
|   | 
 | 
| 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 AbstractGraph *  | make () | 
|   | It creates and returns an empty graph with default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::string &gType) | 
|   | It creates an empty graph with the proper type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::string &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters using the default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::string &gType, const std::string &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters using the default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | open (const std::string &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It opens a graph with the given parameters and default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | open (const std::string &gType, const std::string &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters.  More...
  | 
|   | 
 | 
| std::string  | m_factoryKey | 
|   | The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  More...
  | 
|   | 
This is the concrete factory for the commung Graph type. 
- See also
 - te::graph::AbstractGraphFactory 
 
Definition at line 44 of file GraphFactory.h.
 
◆ dictionary_type
◆ factory_type
◆ ~GraphFactory()
  
  
      
        
          | te::graph::GraphFactory::~GraphFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ GraphFactory()
  
  
      
        
          | te::graph::GraphFactory::GraphFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ build()
◆ create()
  
  
      
        
          | te::graph::AbstractGraph* te::graph::GraphFactory::create  | 
          ( | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
This method must be implemented by subclasses (graph types). 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The new graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Implements te::graph::AbstractGraphFactory.
 
 
◆ finalize()
  
  
      
        
          | static void te::graph::GraphFactory::finalize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ... 
 
 
◆ find()
◆ getCachePolicy()
This method is a auxiliar function used to get the cache policy pointer. 
- Parameters
 - 
  
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The graph cache policy pointer.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ getCreationalParameters()
  
  
      
        
          | void te::graph::GraphFactory::getCreationalParameters  | 
          ( | 
          std::vector< std::pair< std::string, std::string > > &  | 
          params | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ getDictionary()
It returns a reference to the internal dictionary of concrete factories. 
The dictionary is a singleton.
- Returns
 - A reference to the internal dictionary. 
 
Definition at line 157 of file AbstractFactory.h.
 
 
◆ getId()
  
  
      
        
          | static int te::graph::AbstractGraphFactory::getId  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          gInfo | ) | 
           | 
         
       
   | 
  
staticprotectedinherited   | 
  
 
This method is a auxiliar function used to get the graph id. 
- Parameters
 - 
  
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The graph id. 
 
 
 
◆ getKey()
It returns the factory key associated to the concreate factory. 
- Returns
 - The factory key associated to the concreate factory. 
 
Definition at line 140 of file AbstractFactory.h.
 
 
◆ getLoaderStrategy()
This method is a auxiliar function used to get the loader strategy pointer. 
- Parameters
 - 
  
    | gInfo | The necessary information to create the graph.  | 
    | metadata | The graph metadata pointer. | 
  
   
- Returns
 - The graph loader strategy pointer.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ getMetadata()
  
  
      
        
          | static te::graph::GraphMetadata* te::graph::AbstractGraphFactory::getMetadata  | 
          ( | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotectedinherited   | 
  
 
This method is a auxiliar function used to get the metadata pointer. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The graph metadata pointer.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ getType()
  
  
      
        
          | const std::string& te::graph::GraphFactory::getType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ initialize()
  
  
      
        
          | static void te::graph::GraphFactory::initialize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
It initializes the factory: the singleton instance will be registered in the abstract factory ... 
 
 
◆ iOpen()
  
  
      
        
          | te::graph::AbstractGraph* te::graph::GraphFactory::iOpen  | 
          ( | 
          const std::string &  | 
          ,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
This method must be re-implemented by subclasses in order to have a finner control for the graph object instantiation. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - A graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Implements te::graph::AbstractGraphFactory.
 
 
◆ make() [1/4]
It creates and returns an empty graph with default graph type. 
- Returns
 - An empty graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ make() [2/4]
  
  
      
        
          | static AbstractGraph* te::graph::AbstractGraphFactory::make  | 
          ( | 
          const std::string &  | 
          gType | ) | 
           | 
         
       
   | 
  
staticinherited   | 
  
 
It creates an empty graph with the proper type. 
- Parameters
 - 
  
    | gType | The name of the specific graph type to be used to create the graph. | 
  
   
- Returns
 - An empty graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ make() [3/4]
  
  
      
        
          | static AbstractGraph* te::graph::AbstractGraphFactory::make  | 
          ( | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticinherited   | 
  
 
It creates a graph with the given parameters using the default graph type. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - A new graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ make() [4/4]
  
  
      
        
          | static AbstractGraph* te::graph::AbstractGraphFactory::make  | 
          ( | 
          const std::string &  | 
          gType,  | 
         
        
           | 
           | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticinherited   | 
  
 
It creates a graph with the given parameters using the default graph type. 
- Parameters
 - 
  
    | gType | The name of the specific driver to create the raster.  | 
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - A new graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ open() [1/2]
  
  
      
        
          | static AbstractGraph* te::graph::AbstractGraphFactory::open  | 
          ( | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticinherited   | 
  
 
It opens a graph with the given parameters and default graph type. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The opened graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ open() [2/2]
  
  
      
        
          | static AbstractGraph* te::graph::AbstractGraphFactory::open  | 
          ( | 
          const std::string &  | 
          gType,  | 
         
        
           | 
           | 
          const std::string &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticinherited   | 
  
 
It creates a graph with the given parameters. 
- Parameters
 - 
  
    | gType | The name of the specific graph type to create the graph.  | 
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The opened graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ setMetadataInformation()
  
  
      
        
          | static void te::graph::AbstractGraphFactory::setMetadataInformation  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          gInfo,  | 
         
        
           | 
           | 
          te::graph::GraphMetadata *  | 
          metadata  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotectedinherited   | 
  
 
 
◆ m_factoryKey
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.
 
 
◆ sm_factory
Static instance used to register the factory. 
Definition at line 101 of file GraphFactory.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/graph/graphs/GraphFactory.h