This is the abstract factory for XML writers.  
 More...
#include <AbstractWriterFactory.h>
 | 
| const std::string &  | getKey () const | 
|   | It returns the factory key associated to the concreate factory.  
  | 
|   | 
| virtual  | ~AbstractWriterFactory () | 
|   | Virtual destructor.  
  | 
|   | 
 | 
| std::string  | m_factoryKey | 
|   | The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  
  | 
|   | 
 | 
| static std::string  | sm_defaultWriterType | 
|   | The type of the writer to be created if no type is informed.  
  | 
|   | 
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:
static te::xml::AbstractWriter * make()
It creates a new XML writer using the dafault implementation.
 
This class models a XML writer object.
 
 or
- See also
 - Writer 
 
Definition at line 64 of file AbstractWriterFactory.h.
 
◆ dictionary_type
◆ factory_type
◆ ~AbstractWriterFactory()
  
  
      
        
          | virtual te::xml::AbstractWriterFactory::~AbstractWriterFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
Virtual destructor. 
- Note
 - It will automatically unregister the factory from the dictionary. 
 
Definition at line 96 of file AbstractWriterFactory.h.
 
 
◆ AbstractWriterFactory()
  
  
      
        
          | te::xml::AbstractWriterFactory::AbstractWriterFactory  | 
          ( | 
          const std::string &  | 
          factoryKey | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
It creates the factory. 
The key of a AbstractWriterFactory is a string.
- Parameters
 - 
  
    | factoryKey | The key that identifies the factory.  | 
  
   
 
 
◆ build()
  
  | 
      
   | 
  
protectedpure virtualinherited   | 
  
 
Concrete factories (derived from this one) must implement this method in order to create objects. 
- Returns
 - It returns an object created by the concrete factory. 
 
Implemented in te::xerces::WriterFactory.
 
 
◆ find()
◆ 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 106 of file AbstractFactory.h.
 
 
◆ getKey()
It returns the factory key associated to the concreate factory. 
- Returns
 - The factory key associated to the concreate factory. 
 
Definition at line 84 of file AbstractFactory.h.
 
 
◆ make() [1/2]
It creates a new XML writer using the dafault implementation. 
- Returns
 - A new XML writer using the dafault implementation. 
 
 
 
◆ make() [2/2]
It creates a new XML writer. 
- Parameters
 - 
  
    | writerType | The type of XML writer to be created. | 
  
   
- Returns
 - A new XML writer. 
 
 
 
◆ setDefaultWriter()
  
  
      
        
          | static void te::xml::AbstractWriterFactory::setDefaultWriter  | 
          ( | 
          const std::string &  | 
          writerType | ) | 
           | 
         
       
   | 
  
static   | 
  
 
It sets the default driver used to create the XML writer objects. 
- Parameters
 - 
  
    | writerType | The default driver name for creating XML writer objects.  | 
  
   
 
 
◆ 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_defaultWriterType
  
  
      
        
          | std::string te::xml::AbstractWriterFactory::sm_defaultWriterType | 
         
       
   | 
  
staticprivate   | 
  
 
 
The documentation for this class was generated from the following file: