This is the concrete factory for XML reader built on top of Xerces-C++ parser. More...
#include <ReaderFactory.h>
Public Types | |
typedef FactoryDictionary< AbstractFactory< te::xml::Reader, 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... | |
~ReaderFactory () | |
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::Reader * | make () |
It creates a new XML reader using the dafault implementation. More... | |
static te::xml::Reader * | make (const std::string &readerType) |
It creates a new XML reader. More... | |
static void | setDefaultReader (const std::string &readerType) |
It sets the default driver used to create the XML reader objects. More... | |
Protected Member Functions | |
te::xml::Reader * | build () |
Concrete factories (derived from this one) must implement this method in order to create objects. More... | |
ReaderFactory () | |
Static Protected Member Functions | |
static void | finalize () |
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory ReaderFactory. More... | |
static void | initialize () |
It initializes the factory: it will be registered in the abstract factory ReaderFactory. 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 ReaderFactory * | sm_factory |
A pointer to the global Xerces XML Reader factory. More... | |
Friends | |
class | Module |
This is the concrete factory for XML reader built on top of Xerces-C++ parser.
Definition at line 47 of file ReaderFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
virtual |
Virtual destructor.
Reimplemented from te::xml::ReaderFactory.
Definition at line 32 of file ReaderFactory.cpp.
|
protected |
Definition at line 41 of file ReaderFactory.cpp.
|
protectedvirtual |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implements te::common::AbstractFactory< te::xml::Reader, std::string >.
Definition at line 36 of file ReaderFactory.cpp.
|
staticprotected |
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory ReaderFactory.
Definition at line 52 of file ReaderFactory.cpp.
Referenced by te::xerces::Module::shutdown().
|
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.
|
staticprotected |
It initializes the factory: it will be registered in the abstract factory ReaderFactory.
Definition at line 46 of file ReaderFactory.cpp.
Referenced by te::xerces::Module::startup().
|
staticinherited |
It creates 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 te::xml::ReaderFactory::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().
|
staticinherited |
It creates a new XML reader.
readerType | The type of XML reader to be created. |
Definition at line 37 of file ReaderFactory.cpp.
References te::common::Convert2UCase(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make().
|
staticinherited |
It sets the default driver used to create the XML reader objects.
readerType | The default driver name for creating XML reader objects. |
Definition at line 43 of file ReaderFactory.cpp.
References te::common::Convert2UCase().
|
friend |
Definition at line 69 of file ReaderFactory.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.
|
staticprivate |
A pointer to the global Xerces XML Reader factory.
Definition at line 67 of file ReaderFactory.h.