![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
Partie d'un document structure decodee avant analyse. More...
#include <linguisticProcessing/core/DocumentsReader/contentDocument.h>
Public Member Functions | |
| ContentStructuredDocument () | |
| ~ContentStructuredDocument () | |
| unsigned int | getOffset () |
| retourne la position courante byte du dernier element, pour initialiser le suivant | |
| void | addPart (const Lima::LimaString &text, const unsigned int offset) |
| Ajoute un couple (texte,offset) au dernier element. | |
| DiscardableDocumentElement * | pushDiscardableChild (const QString &elementName, unsigned int parserOffset) |
| Ajoute un element a la pile de type noeud discardable. | |
| DocumentPropertyElement * | addPropertyChild (const QString &elementName, unsigned int parserOffset, const DocumentPropertyType &type) |
| Ajoute un element a la pile de type propriete du noeud fils. | |
| HierarchyDocumentElement * | pushHierarchyChild (const QString &elementName, unsigned int parserOffset, const DocumentPropertyType &propType) |
| Ajoute un element a la pile de type hierarchy. | |
| IndexingDocumentElement * | pushIndexingChild (const QString &elementName, unsigned int parserOffset, const DocumentPropertyType &propType) |
| IgnoredDocumentElement * | pushIgnoredChild (const QString &elementName, unsigned int parserOffset, const DocumentPropertyType &propType) |
| PresentationDocumentElement * | pushPresentationChild (const QString &elementName, unsigned int parserOffset) |
| Ajoute un element a la pile de type presentation. | |
| void | popDiscardableElement (unsigned int parserOffset) |
| void | popIndexingElement (unsigned int parserOffset) |
| void | popPresentationElement (unsigned int parserOffset) |
| void | popPropertyElement (unsigned int parserOffset) |
| void | popHierarchyElement (unsigned int parserOffset) |
| void | popIgnoredElement (unsigned int parserOffset) |
| void | setDataToPreviousElement (StructuredXmlDocumentHandler *processor) |
| void | setDataToLastElement (const DocumentPropertyType &property, const std::string &data, StructuredXmlDocumentHandler *processor) |
| void | setDataToElement (AbstractStructuredDocumentElement *absElement, const DocumentPropertyType &property, const std::string &data, StructuredXmlDocumentHandler *processor) |
Public Member Functions inherited from Lima::Common::Misc::GenericDocumentProperties | |
| GenericDocumentProperties () | |
| GenericDocumentProperties (const GenericDocumentProperties &) | |
| virtual | ~GenericDocumentProperties () |
| GenericDocumentProperties & | operator= (const GenericDocumentProperties &) |
| virtual void | reinit () |
| virtual void | read (std::istream &file) |
| void | write (std::ostream &file) const |
| virtual void | print (std::ostream &) const |
| virtual void | print (QTextStream &) const |
| virtual void | print (QDebug &) const |
| virtual bool | is_empty () const |
| std::pair< uint64_t, bool > | getIntValue (std::string propName) const |
| Read access functions for "only once valued" property propName. | |
| std::pair< std::string, bool > | getStringValue (std::string propName) const |
| std::pair< QDate, bool > | getDateValue (std::string propName) const |
| std::pair< std::pair< QDate, QDate >, bool > | getDateIntervalValue (std::string propName) const |
| std::pair< StringPropMultIter, StringPropMultIter > | getMultipleStringPropValue (std::string propName) const |
| Read access functions for "multiple-valued" property propName Return a pair of iterator (begin,end) to iterate through values types may be any of: | |
| std::pair< WeightedPropMultIter, WeightedPropMultIter > | getMultipleWeightedPropValue (std::string propName) const |
| std::pair< IntPropertiesIterator, IntPropertiesIterator > | getIntProperties () const |
| std::pair< StringPropertiesIterator, StringPropertiesIterator > | getStringProperties () const |
| std::pair< DatePropertiesIterator, DatePropertiesIterator > | getDateProperties () const |
| std::pair< DateIntervalPropertiesIterator, DateIntervalPropertiesIterator > | getDateIntervalProperties () const |
| std::pair< MultiValuedPropertyIterator< std::string >, MultiValuedPropertyIterator< std::string > > | getStringPropertyNames () const |
| Read access functions for all "multiple valued" properties return an iterator of names Types may be any of (std::string) or (std::pair<std::string,float) | |
| std::pair< MultiValuedPropertyIterator< std::pair< std::string, float > >, MultiValuedPropertyIterator< std::pair< std::string, float > > > | getWeightedPropPropertyNames () const |
| void | setIntValue (const std::string &propName, const uint64_t &val) |
| void | setStringValue (const std::string &propName, const std::string &val) |
| void | setDateValue (const std::string &propName, const QDate &val) |
| void | setDateIntervalValue (const std::string &propName, const std::pair< QDate, QDate > &val) |
| void | setMultipleStringPropValue (const std::string &propName, const std::vector< std::string > &val) |
| void | setMultipleWeightedPropValue (const std::string &propName, const std::vector< std::pair< std::string, float > > &val) |
| void | addStringValue (const std::string &propName, const std::string &str) |
| void | addWeightedPropValue (const std::string &propName, const std::pair< std::string, float > &str) |
Static Public Member Functions | |
| static void | parseDate (const std::string &dateStr, QDate &dateBegin, QDate &dateEnd) |
| static void | parseWeightedValue (const std::string &weightedValueStr, std::string &value, float &score) |
Additional Inherited Members | |
Public Types inherited from Lima::Common::Misc::GenericDocumentProperties | |
| typedef std::map< std::string, uint64_t >::const_iterator | IntPropertiesIterator |
| Read access functions for all "only once valued" properties return an iterator Types may be any of (uint64_t), (std::string), (QDate) or (std::pair<QDate,QDate>) used for approximative date. | |
| typedef std::map< std::string, std::string >::const_iterator | StringPropertiesIterator |
| typedef std::map< std::string, QDate >::const_iterator | DatePropertiesIterator |
| typedef std::map< std::string, std::pair< QDate, QDate > >::const_iterator | DateIntervalPropertiesIterator |
Protected Attributes inherited from Lima::Common::Misc::GenericDocumentProperties | |
| GenericDocumentPropertiesPrivate * | m_d |
Partie d'un document structure decodee avant analyse.
Definition at line 43 of file contentDocument.h.
|
inline |
Definition at line 47 of file contentDocument.h.
| Lima::DocumentsReader::ContentStructuredDocument::~ContentStructuredDocument | ( | ) |
Definition at line 231 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::addPart | ( | const Lima::LimaString & | text, |
| const unsigned int | offset | ||
| ) |
Ajoute un couple (texte,offset) au dernier element.
Definition at line 48 of file contentDocument.cpp.
| DocumentPropertyElement * Lima::DocumentsReader::ContentStructuredDocument::addPropertyChild | ( | const QString & | elementName, |
| unsigned int | parserOffset, | ||
| const DocumentPropertyType & | type | ||
| ) |
Ajoute un element a la pile de type propriete du noeud fils.
Definition at line 53 of file contentDocument.cpp.
| unsigned int Lima::DocumentsReader::ContentStructuredDocument::getOffset | ( | ) |
retourne la position courante byte du dernier element, pour initialiser le suivant
Definition at line 34 of file contentDocument.cpp.
|
static |
Definition at line 567 of file contentDocument.cpp.
|
static |
Definition at line 532 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popDiscardableElement | ( | unsigned int | parserOffset | ) |
Definition at line 237 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popHierarchyElement | ( | unsigned int | parserOffset | ) |
Definition at line 378 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popIgnoredElement | ( | unsigned int | parserOffset | ) |
Definition at line 347 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popIndexingElement | ( | unsigned int | parserOffset | ) |
Definition at line 312 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popPresentationElement | ( | unsigned int | parserOffset | ) |
Definition at line 281 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::popPropertyElement | ( | unsigned int | parserOffset | ) |
Definition at line 261 of file contentDocument.cpp.
| DiscardableDocumentElement * Lima::DocumentsReader::ContentStructuredDocument::pushDiscardableChild | ( | const QString & | elementName, |
| unsigned int | parserOffset | ||
| ) |
Ajoute un element a la pile de type noeud discardable.
Definition at line 189 of file contentDocument.cpp.
| HierarchyDocumentElement * Lima::DocumentsReader::ContentStructuredDocument::pushHierarchyChild | ( | const QString & | elementName, |
| unsigned int | parserOffset, | ||
| const DocumentPropertyType & | propType | ||
| ) |
Ajoute un element a la pile de type hierarchy.
Definition at line 65 of file contentDocument.cpp.
| IgnoredDocumentElement * Lima::DocumentsReader::ContentStructuredDocument::pushIgnoredChild | ( | const QString & | elementName, |
| unsigned int | parserOffset, | ||
| const DocumentPropertyType & | propType | ||
| ) |
Definition at line 159 of file contentDocument.cpp.
| IndexingDocumentElement * Lima::DocumentsReader::ContentStructuredDocument::pushIndexingChild | ( | const QString & | elementName, |
| unsigned int | parserOffset, | ||
| const DocumentPropertyType & | propType | ||
| ) |
Definition at line 118 of file contentDocument.cpp.
| PresentationDocumentElement * Lima::DocumentsReader::ContentStructuredDocument::pushPresentationChild | ( | const QString & | elementName, |
| unsigned int | parserOffset | ||
| ) |
Ajoute un element a la pile de type presentation.
Definition at line 202 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::setDataToElement | ( | AbstractStructuredDocumentElement * | absElement, |
| const DocumentPropertyType & | property, | ||
| const std::string & | data, | ||
| StructuredXmlDocumentHandler * | processor | ||
| ) |
Definition at line 446 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::setDataToLastElement | ( | const DocumentPropertyType & | property, |
| const std::string & | data, | ||
| StructuredXmlDocumentHandler * | processor | ||
| ) |
Definition at line 440 of file contentDocument.cpp.
| void Lima::DocumentsReader::ContentStructuredDocument::setDataToPreviousElement | ( | StructuredXmlDocumentHandler * | processor | ) |
Definition at line 418 of file contentDocument.cpp.