![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
Element d'un document XML de presentation Exemple <BOLD>important</BOLD> => " important " ou bien <BOLD>C'est <UNDERLINED>tres<UNDERLINED>important</BOLD> => " C'est tres< important ". More...
#include <linguisticProcessing/core/DocumentsReader/DocumentElements.h>
Public Member Functions | |
| PresentationDocumentElement (const QString &elementName, unsigned int firstBytePos, const PropagatedProperties &toBePropagated) | |
| ~PresentationDocumentElement () | |
| bool | isPresentation () override |
| virtual FieldType | nodeType () override |
Public Member Functions inherited from Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties | |
| AbstractStructuredDocumentElementWithProperties (const QString &elementName, unsigned int firstBytePos, const PropagatedProperties &toBePropagated) | |
| virtual | ~AbstractStructuredDocumentElementWithProperties () |
| void | addProperty (const DocumentPropertyType &propType, const std::string &value) |
| const PropagatedProperties & | getPropertyList () const |
| void | setPropagatedValue (const PropagatedProperties &toBePropagated) |
Public Member Functions inherited from Lima::DocumentsReader::AbstractStructuredDocumentElement | |
| virtual | ~AbstractStructuredDocumentElement () |
| void | addPart (const Lima::LimaString &text, const unsigned int offset) |
| virtual bool | hasPropType () |
| virtual const DocumentPropertyType & | getPropType () |
| virtual const Lima::LimaString & | getPropertyValue () const |
| virtual const QString & | getElementName () const |
| virtual void | addToCurrentOffset (const Lima::LimaString &value) |
| unsigned long int | getOffset () |
| void | setOffset (unsigned long int offset) |
| void | addSpaces (int nbSpaces) |
Public Member Functions inherited from Lima::DocumentsReader::AbstractDocumentElement | |
| virtual | ~AbstractDocumentElement () |
| virtual bool | isDiscarding () |
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) |
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 Member Functions inherited from Lima::DocumentsReader::AbstractStructuredDocumentElement | |
| AbstractStructuredDocumentElement (const QString &elementName, unsigned int firstBytePos) | |
Protected Attributes inherited from Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties | |
| PropagatedProperties | m_toBePropagated |
Protected Attributes inherited from Lima::DocumentsReader::AbstractStructuredDocumentElement | |
| QString | m_elementName |
| nom du tag de l'element | |
| unsigned long int | m_offset |
| current position during parsing | |
| DocumentPropertyType | m_propType |
| Lima::LimaString | m_propertyValue |
Protected Attributes inherited from Lima::Common::Misc::GenericDocumentProperties | |
| GenericDocumentPropertiesPrivate * | m_d |
Element d'un document XML de presentation Exemple <BOLD>important</BOLD> => " important " ou bien <BOLD>C'est <UNDERLINED>tres<UNDERLINED>important</BOLD> => " C'est tres< important ".
Definition at line 221 of file DocumentElements.h.
| Lima::DocumentsReader::PresentationDocumentElement::PresentationDocumentElement | ( | const QString & | elementName, |
| unsigned int | firstBytePos, | ||
| const PropagatedProperties & | toBePropagated | ||
| ) |
Definition at line 174 of file DocumentElements.cpp.
|
inline |
Definition at line 228 of file DocumentElements.h.
|
inlineoverridevirtual |
Reimplemented from Lima::DocumentsReader::AbstractDocumentElement.
Definition at line 229 of file DocumentElements.h.
|
inlineoverridevirtual |
Reimplemented from Lima::DocumentsReader::AbstractDocumentElement.
Definition at line 230 of file DocumentElements.h.