LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::XmlReader::AbstractXmlReaderClientFactory Class Referenceabstract

A factory for the AbstractXmlReaderClient: contains the registration of all implemented clients that are linked with the program. More...

#include <linguisticProcessing/client/xmlreader/AbstractXmlReaderClient.h>

Inheritance diagram for Lima::XmlReader::AbstractXmlReaderClientFactory:
Lima::RegistrableFactory< AbstractXmlReaderClientFactory > Lima::XmlReader::CoreXmlReaderClientFactory

Public Member Functions

virtual void configure (const Lima::Common::XMLConfigurationFiles::XMLConfigurationFileParser &configuration, const std::string &defaultMedia, const std::deque< std::string > &medias, const std::deque< std::string > &pipelines)=0
 
virtual std::shared_ptr< AbstractXmlReaderClient > createClient (Lima::Common::XMLConfigurationFiles::XMLConfigurationFileParser *configuration) const =0
 
 
virtual ~AbstractXmlReaderClientFactory ()
 virtual destructor of the XmlReader client factory
 
std::shared_ptr< Lima::ProcessingClientFactory > getFactoryFromId (const std::string &id) const
 
void setFactoryFromId (const std::string &id, std::shared_ptr< Lima::ProcessingClientFactory > factory)
 
void setMapTagMedia (const std::map< std::string, std::string > &Ids)
 
void setMapMediaFactory (const std::map< std::string, std::string > &Ids)
 
void setDefaultMedia (const std::string &media)
 
- Public Member Functions inherited from Lima::RegistrableFactory< AbstractXmlReaderClientFactory >
virtual ~RegistrableFactory ()=default
 

Protected Member Functions

 AbstractXmlReaderClientFactory (const std::string &id)
 
- Protected Member Functions inherited from Lima::RegistrableFactory< AbstractXmlReaderClientFactory >
 RegistrableFactory (const std::string &id)
 Constructor is protected, and must be redefined by subclass.
 

Protected Attributes

std::map< std::string, std::shared_ptr< Lima::ProcessingClientFactory > > m_mapFactory
 
std::map< std::string, std::string > m_mapTagMedia
 
std::map< std::string, std::string > m_mapMediaFactory
 
std::string m_defaultMedia
 

Additional Inherited Members

- Static Public Member Functions inherited from Lima::RegistrableFactory< AbstractXmlReaderClientFactory >
static std::shared_ptr< AbstractXmlReaderClientFactory > getFactory (const std::string &id)
 get the factory corresponding to the given id
 
static std::deque< std::string > getRegisteredFactories ()
 get the list of factories registered
 

Detailed Description

A factory for the AbstractXmlReaderClient: contains the registration of all implemented clients that are linked with the program.

The factory dynamically creates the actual clients from their names.

Definition at line 111 of file AbstractXmlReaderClient.h.

Constructor & Destructor Documentation

◆ ~AbstractXmlReaderClientFactory()

virtual Lima::XmlReader::AbstractXmlReaderClientFactory::~AbstractXmlReaderClientFactory ( )
inlinevirtual

virtual destructor of the XmlReader client factory

Definition at line 126 of file AbstractXmlReaderClient.h.

◆ AbstractXmlReaderClientFactory()

Lima::XmlReader::AbstractXmlReaderClientFactory::AbstractXmlReaderClientFactory ( const std::string &  id)
inlineprotected

Definition at line 155 of file AbstractXmlReaderClient.h.

Member Function Documentation

◆ configure()

virtual void Lima::XmlReader::AbstractXmlReaderClientFactory::configure ( const Lima::Common::XMLConfigurationFiles::XMLConfigurationFileParser &  configuration,
const std::string &  defaultMedia,
const std::deque< std::string > &  medias,
const std::deque< std::string > &  pipelines 
)
pure virtual

◆ createClient()

virtual std::shared_ptr< AbstractXmlReaderClient > Lima::XmlReader::AbstractXmlReaderClientFactory::createClient ( Lima::Common::XMLConfigurationFiles::XMLConfigurationFileParser *  configuration) const
pure virtual

Implemented in Lima::XmlReader::CoreXmlReaderClientFactory.

◆ getFactoryFromId()

std::shared_ptr< Lima::ProcessingClientFactory > Lima::XmlReader::AbstractXmlReaderClientFactory::getFactoryFromId ( const std::string &  id) const
inline

Definition at line 128 of file AbstractXmlReaderClient.h.

◆ setDefaultMedia()

void Lima::XmlReader::AbstractXmlReaderClientFactory::setDefaultMedia ( const std::string &  media)
inline

Definition at line 148 of file AbstractXmlReaderClient.h.

◆ setFactoryFromId()

void Lima::XmlReader::AbstractXmlReaderClientFactory::setFactoryFromId ( const std::string &  id,
std::shared_ptr< Lima::ProcessingClientFactory >  factory 
)
inline

Definition at line 134 of file AbstractXmlReaderClient.h.

◆ setMapMediaFactory()

void Lima::XmlReader::AbstractXmlReaderClientFactory::setMapMediaFactory ( const std::map< std::string, std::string > &  Ids)
inline

Definition at line 144 of file AbstractXmlReaderClient.h.

◆ setMapTagMedia()

void Lima::XmlReader::AbstractXmlReaderClientFactory::setMapTagMedia ( const std::map< std::string, std::string > &  Ids)
inline

Definition at line 139 of file AbstractXmlReaderClient.h.

Member Data Documentation

◆ m_defaultMedia

std::string Lima::XmlReader::AbstractXmlReaderClientFactory::m_defaultMedia
protected

Definition at line 161 of file AbstractXmlReaderClient.h.

◆ m_mapFactory

std::map<std::string, std::shared_ptr< Lima::ProcessingClientFactory > > Lima::XmlReader::AbstractXmlReaderClientFactory::m_mapFactory
protected

Definition at line 158 of file AbstractXmlReaderClient.h.

◆ m_mapMediaFactory

std::map<std::string, std::string> Lima::XmlReader::AbstractXmlReaderClientFactory::m_mapMediaFactory
protected

Definition at line 160 of file AbstractXmlReaderClient.h.

◆ m_mapTagMedia

std::map<std::string, std::string> Lima::XmlReader::AbstractXmlReaderClientFactory::m_mapTagMedia
protected

Definition at line 159 of file AbstractXmlReaderClient.h.


The documentation for this class was generated from the following file: