This is the abstract factory for XML readers.
More...
#include <ReaderFactory.h>
|
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 abstract factory for XML readers.
This is an abstract factory, so you will need to call the static method make as follow:
or
- See also
- Reader
Definition at line 61 of file ReaderFactory.h.
virtual te::xml::ReaderFactory::~ReaderFactory |
( |
| ) |
|
|
inlinevirtual |
te::xml::ReaderFactory::ReaderFactory |
( |
const std::string & |
factoryKey | ) |
|
|
protected |
It creates the factory.
The key of a ReaderFactory is a string.
- Parameters
-
factoryKey | The key that identifies the factory. |
Definition at line 49 of file ReaderFactory.cpp.
|
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::ReaderFactory.
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
- Returns
- A reference to the internal dictionary.
It returns the factory key associated to the concreate factory.
- Returns
- The factory key associated to the concreate factory.
It creates a new XML reader using the dafault implementation.
- Returns
- A new XML reader using the dafault implementation.
Definition at line 32 of file ReaderFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make(), and sm_defaultReaderType.
Referenced by te::plugin::GetInstalledPlugin(), te::xsd::Read(), te::serialize::xml::Read(), te::serialize::xml::ReadDataSourceInfo(), te::serialize::xml::ReadDialect(), te::qt::af::ReadProject(), te::xsd::serialize::ReadSchema(), and te::qt::widgets::ReadSymbolLibrary().
te::xml::Reader * te::xml::ReaderFactory::make |
( |
const std::string & |
readerType | ) |
|
|
static |
void te::xml::ReaderFactory::setDefaultReader |
( |
const std::string & |
readerType | ) |
|
|
static |
It sets the default driver used to create the XML reader objects.
- Parameters
-
readerType | The default driver name for creating XML reader objects. |
Definition at line 43 of file ReaderFactory.cpp.
References te::common::Convert2UCase().
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.
std::string te::xml::ReaderFactory::sm_defaultReaderType |
|
staticprivate |
The type of the reader to be created if no type is informed.
Definition at line 108 of file ReaderFactory.h.
Referenced by make().
The documentation for this class was generated from the following files:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xml/ReaderFactory.h
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xml/ReaderFactory.cpp