![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <linguisticProcessing/core/EventAnalysis/EventHandler.h>
Public Member Functions | |
| EventHandler (std::ostream *out) | |
| EventHandler () | |
| virtual | ~EventHandler () |
| void | startDocument (const Common::Misc::GenericDocumentProperties &props) override |
| notify the start of a new document | |
| void | endDocument () override |
| notify the end of the document | |
| void | endAnalysis () override |
| function called by the LIMA analyzer on the end of a text part that is to be analyzed | |
| void | startAnalysis () override |
| function called by the LIMA analyzer on start of a new document | |
| Events & | getEvents () |
| void | handle (const char *buf, int length) override |
| gives content. | |
| void | startNode (const std::string &elementName, bool forIndexing) override |
| notify the start of a new hierarchyNode | |
| void | endNode (const Common::Misc::GenericDocumentProperties &props) override |
| notify the end of a hierarchyNode | |
| virtual void | setOut (std::ostream *out) override |
| set the output stream. | |
Public Member Functions inherited from Lima::AbstractTextualAnalysisHandler | |
| AbstractTextualAnalysisHandler () | |
| virtual | ~AbstractTextualAnalysisHandler () |
| virtual void | init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override |
| initialize with parameters from configuration file. | |
| virtual const std::string & | suffix () const |
| virtual void | setSuffix (const std::string &suffix) |
Public Member Functions inherited from Lima::LinguisticProcessing::AbstractResource | |
| AbstractResource (QObject *parent=0) | |
| virtual | ~AbstractResource () |
| AbstractResource (const AbstractResource &) | |
| virtual void | init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override=0 |
| initialize with parameters from configuration file. | |
Public Member Functions inherited from Lima::LinguisticProcessing::AbstractResourceBase | |
| AbstractResourceBase (QObject *parent=0) | |
| virtual | ~AbstractResourceBase () |
| AbstractResourceBase (const AbstractResourceBase &) | |
| QString | getResourceFileName (const QString ¶mName) |
Public Member Functions inherited from Lima::InitializableObject< AbstractResource, ResourceInitializationParameters > | |
| InitializableObject () | |
| InitializableObject (const InitializableObject &object) | |
| InitializableObject & | operator= (const InitializableObject &object) |
| virtual | ~InitializableObject () |
| const std::string & | getId () const |
| get the object id | |
| void | setId (const std::string &id) |
| set the object id | |
Public Member Functions inherited from Lima::AbstractXmlAnalysisHandler | |
| AbstractXmlAnalysisHandler (std::shared_ptr< const ShiftFrom > shiftFrom) | |
| virtual | ~AbstractXmlAnalysisHandler () |
| std::shared_ptr< const ShiftFrom > | shiftFrom () const |
Public Member Functions inherited from Lima::AbstractAnalysisHandler | |
| virtual | ~AbstractAnalysisHandler () |
Public Member Functions inherited from Lima::AnalysisData | |
| virtual | ~AnalysisData () |
Additional Inherited Members | |
Public Types inherited from Lima::InitializableObject< AbstractResource, ResourceInitializationParameters > | |
| typedef InitializableObjectManager< AbstractResource, ResourceInitializationParameters > | Manager |
| Manager is the type of the Manager associated to the initializableObject. | |
| typedef InitializableObjectFactory< AbstractResource > | Factory |
| Factory is the type of the Factory associated to the initializableObject. | |
Signals inherited from Lima::LinguisticProcessing::AbstractResourceBase | |
| void | resourceFileChanged (const QString &path) |
| Signal triggered whenever one of the registered files changes on disk. | |
Protected Member Functions inherited from Lima::LinguisticProcessing::AbstractResourceBase | |
| LimaFileSystemWatcher & | resourceFileWatcher () |
| Accessor to the file watcher used to register resource files to be watched for changes. | |
Protected Attributes inherited from Lima::LinguisticProcessing::AbstractResourceBase | |
| AbstractResourceBasePrivate * | m_d |
Protected Attributes inherited from Lima::InitializableObject< AbstractResource, ResourceInitializationParameters > | |
| std::string | m_id |
Definition at line 33 of file EventHandler.h.
| Lima::LinguisticProcessing::EventAnalysis::EventHandler::EventHandler | ( | std::ostream * | out | ) |
Definition at line 27 of file EventHandler.cpp.
| Lima::LinguisticProcessing::EventAnalysis::EventHandler::EventHandler | ( | ) |
Definition at line 33 of file EventHandler.cpp.
|
virtual |
Definition at line 38 of file EventHandler.cpp.
|
overridevirtual |
function called by the LIMA analyzer on the end of a text part that is to be analyzed
Implements Lima::AbstractAnalysisHandler.
Definition at line 62 of file EventHandler.cpp.
|
overridevirtual |
notify the end of the document
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 59 of file EventHandler.cpp.
|
overridevirtual |
notify the end of a hierarchyNode
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 107 of file EventHandler.cpp.
| Events & Lima::LinguisticProcessing::EventAnalysis::EventHandler::getEvents | ( | ) |
Definition at line 44 of file EventHandler.cpp.
|
overridevirtual |
gives content.
Content is a serialized form of the expected resultType
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 94 of file EventHandler.cpp.
|
overridevirtual |
set the output stream.
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 49 of file EventHandler.cpp.
|
overridevirtual |
function called by the LIMA analyzer on start of a new document
| props | the document properties, which can contain some metadata that are automatically generated by the analyzer (such as language, date of analysis etc), and some metadata that are directly extracted from the document to analyze, in case of the analysis of an XML documents (in this case, the configuration of the analysis indicates in which tags the information can be found) function called by the LIMA analyzer on start at end of a document function called by the LIMA analyzer on the start of a text part that is to be analyzed |
Implements Lima::AbstractAnalysisHandler.
Definition at line 72 of file EventHandler.cpp.
|
overridevirtual |
notify the start of a new document
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 54 of file EventHandler.cpp.
|
overridevirtual |
notify the start of a new hierarchyNode
Implements Lima::AbstractXmlAnalysisHandler.
Definition at line 101 of file EventHandler.cpp.