This is the abstract factory for XML writers. More...
#include <AbstractWriterFactory.h>
  
 Public Types | |
| typedef FactoryDictionary < AbstractFactory < te::xml::AbstractWriter, std::string, TKEYCOMPARE > , std::string, TKEYCOMPARE >  | 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... | |
| virtual | ~AbstractWriterFactory () | 
| Virtual destructor.  More... | |
Static Public Member Functions | |
| 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 te::xml::AbstractWriter * | make () | 
| It creates a new XML writer using the dafault implementation.  More... | |
| static te::xml::AbstractWriter * | make (const std::string &writerType) | 
| It creates a new XML writer.  More... | |
| static void | setDefaultWriter (const std::string &writerType) | 
| It sets the default driver used to create the XML writer objects.  More... | |
Protected Member Functions | |
| AbstractWriterFactory (const std::string &factoryKey) | |
| It creates the factory.  More... | |
| virtual te::xml::AbstractWriter * | 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 Private Attributes | |
| static std::string | sm_defaultWriterType | 
| The type of the writer to be created if no type is informed.  More... | |
This is the abstract factory for XML writers.
This is an abstract factory, so you will need to call the static method make as follow:
or
Definition at line 64 of file AbstractWriterFactory.h.
      
  | 
  inherited | 
Definition at line 73 of file AbstractFactory.h.
      
  | 
  inherited | 
Definition at line 77 of file AbstractFactory.h.
      
  | 
  inlinevirtual | 
Virtual destructor.
Definition at line 96 of file AbstractWriterFactory.h.
      
  | 
  protected | 
It creates the factory.
The key of a AbstractWriterFactory is a string.
| factoryKey | The key that identifies the factory. | 
Definition at line 53 of file AbstractWriterFactory.cpp.
      
  | 
  protectedpure virtualinherited | 
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::xerces::WriterFactory.
      
  | 
  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.
      
  | 
  static | 
It creates a new XML writer using the dafault implementation.
Definition at line 33 of file AbstractWriterFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make(), and sm_defaultWriterType.
Referenced by te::serialize::xml::Save(), and te::qt::af::Save().
      
  | 
  static | 
It creates a new XML writer.
| writerType | The type of XML writer to be created. | 
Definition at line 38 of file AbstractWriterFactory.cpp.
References te::common::Convert2UCase(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make().
      
  | 
  static | 
It sets the default driver used to create the XML writer objects.
| writerType | The default driver name for creating XML writer objects. | 
Definition at line 47 of file AbstractWriterFactory.cpp.
References te::common::Convert2UCase().
      
  | 
  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 | 
The type of the writer to be created if no type is informed.
Definition at line 111 of file AbstractWriterFactory.h.
Referenced by make().