6#ifndef ABSTRACTCXMLREADERCLIENT_H
7#define ABSTRACTCXMLREADERCLIENT_H
17 class ProcessingClientFactory;
39 virtual std::shared_ptr<AnalysisContent>
analyze(
40 const std::string &content,
41 const std::map<std::string, std::string>& metaData,
42 const std::string& pipeline,
43 const std::map<std::string, Lima::AbstractAnalysisHandler*>& handlers = std::map<std::string, Lima::AbstractAnalysisHandler*>(),
44 const std::set<std::string>& inactiveUnits = std::set<std::string>())
const override = 0;
56 m_defaultMedia = media;
74 void setDocumentPropertyConfiguration(
83 standardPrprtyInfos = m_standardPrprtyInfos;
84 extendedPrprtyInfos = m_extendedPrprtyInfos;
118 const std::string& defaultMedia,
119 const std::deque<std::string>& medias,
120 const std::deque<std::string>& pipelines) = 0;
128 std::shared_ptr< Lima::ProcessingClientFactory >
getFactoryFromId(
const std::string&
id)
const {
134 void setFactoryFromId(
const std::string&
id, std::shared_ptr< Lima::ProcessingClientFactory > factory) {
158 std::map<std::string, std::shared_ptr< Lima::ProcessingClientFactory > >
m_mapFactory;
#define XMLREADERCLIENT_EXPORT
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
mother class of (abstract) clients that analyse content.
Parser class for the lima's xml configuration files.
Defines a Factory that automatically register to a MainFactory singleton.
A factory for the AbstractXmlReaderClient: contains the registration of all implemented clients that ...
void setFactoryFromId(const std::string &id, std::shared_ptr< Lima::ProcessingClientFactory > factory)
std::string m_defaultMedia
std::shared_ptr< Lima::ProcessingClientFactory > getFactoryFromId(const std::string &id) const
virtual std::shared_ptr< AbstractXmlReaderClient > createClient(Lima::Common::XMLConfigurationFiles::XMLConfigurationFileParser *configuration) const =0
This function create a XmlReader client
std::map< std::string, std::string > m_mapMediaFactory
void setDefaultMedia(const std::string &media)
virtual ~AbstractXmlReaderClientFactory()
virtual destructor of the XmlReader client factory
std::map< std::string, std::string > m_mapTagMedia
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
std::map< std::string, std::shared_ptr< Lima::ProcessingClientFactory > > m_mapFactory
void setMapMediaFactory(const std::map< std::string, std::string > &Ids)
AbstractXmlReaderClientFactory(const std::string &id)
void setMapTagMedia(const std::map< std::string, std::string > &Ids)
interface publique au client d'analyse de fichier XML
std::string m_defaultMedia
void setDefaultMedia(const std::string &media)
virtual std::shared_ptr< AnalysisContent > analyze(const std::string &content, const std::map< std::string, std::string > &metaData, const std::string &pipeline, const std::map< std::string, Lima::AbstractAnalysisHandler * > &handlers=std::map< std::string, Lima::AbstractAnalysisHandler * >(), const std::set< std::string > &inactiveUnits=std::set< std::string >()) const override=0
Analyse un fichier XML.
std::map< std::string, DocPropertyPublicInfo > DocPropertyPublicInfoMap
Store the association of a document property name and its subset of attributes.
void getDocumentPropertyConfiguration(DocPropertyPublicInfoMap &standardPrprtyInfos, DocPropertyPublicInfoMap &extendedPrprtyInfos) const
Retrieve the document property attributes for both standard and extended properties-list.
void setMapTagMedia(const std::map< std::string, std::string > &Ids)
virtual ~AbstractXmlReaderClient()
define a virtual destructor to ensure concrete client destructors to be called
Lima::AbstractProcessingClientHandler m_processingClientHandler
DocPropertyPublicInfoMap m_standardPrprtyInfos
virtual void setAnalysisHandler(const std::string &handlerId, Lima::AbstractAnalysisHandler *handler)=0
std::map< std::string, std::string > m_mapTagMedia
virtual void releaseAnalysisHandler(const std::string &handlerId)=0
deletes the analysis handler with the given id and removes it
DocPropertyPublicInfoMap m_extendedPrprtyInfos
Store a subset of document property attributes extracted from configuration, for the purpose of publi...