Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory singleton on Windows. More...
#include <Task.h>
  
Public Types | |
| typedef FactoryDictionary< AbstractFactory< te::process::Task, 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... | |
| TaskFactory (const std::string &taskType, const std::string &category) | |
| Constructor.  More... | |
| virtual | ~TaskFactory () | 
| Gets all registered categories.  More... | |
Static Public Member Functions | |
| static const factory_type * | find (const std::string &factoryKey) | 
| static std::vector< std::string > | getCategories () | 
| Gets all tasks from the give category.  More... | |
| static dictionary_type & | getDictionary () | 
| It returns a reference to the internal dictionary of concrete factories.  More... | |
| static std::vector< std::string > | getTasksFromCategory (const std::string &category) | 
| static te::process::Task * | make (const std::string &factoryKey) | 
| It creates an object with the appropriated factory.  More... | |
Protected Member Functions | |
| virtual te::process::Task * | build ()=0 | 
| Concrete factories (derived from this one) must implement this method in order to create objects.  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 Protected Attributes | |
| static std::map< std::string, std::vector< std::string > > | m_mapCategories | 
Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory singleton on Windows.
Abstract factory used to create Tasks.
      
  | 
  inherited | 
Definition at line 73 of file AbstractFactory.h.
      
  | 
  inherited | 
Definition at line 77 of file AbstractFactory.h.
| te::process::TaskFactory::TaskFactory | ( | const std::string & | taskType, | 
| const std::string & | category | ||
| ) | 
Constructor.
| factoryKey | The key that identifies the factory. Destructor | 
      
  | 
  virtual | 
Gets all registered categories.
      
  | 
  protectedpure virtualinherited | 
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::process::DataStoreTaskFactory, and te::process::DataAccessTaskFactory.
      
  | 
  inlinestaticinherited | 
Definition at line 108 of file AbstractFactory.h.
      
  | 
  static | 
Gets all tasks from the give category.
      
  | 
  inlinestaticinherited | 
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
Definition at line 106 of file AbstractFactory.h.
      
  | 
  inlineinherited | 
It returns the factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
      
  | 
  static | 
      
  | 
  inlinestaticinherited | 
It creates an object with the appropriated factory.
| factoryKey | A key that identifies the factory used to build the object. | 
| Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. | 
Definition at line 97 of file AbstractFactory.h.
      
  | 
  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.
      
  | 
  staticprotected |