LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties Class Reference

#include <linguisticProcessing/core/DocumentsReader/DocumentElements.h>

Inheritance diagram for Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties:
Lima::DocumentsReader::AbstractStructuredDocumentElement Lima::Common::Misc::GenericDocumentProperties Lima::DocumentsReader::AbstractDocumentElement Lima::DocumentsReader::HierarchyDocumentElement Lima::DocumentsReader::IgnoredDocumentElement Lima::DocumentsReader::IndexingDocumentElement Lima::DocumentsReader::PresentationDocumentElement

Public Member Functions

 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 ()
 
virtual bool isPresentation ()
 
virtual FieldType nodeType ()
 
- 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)
 

Protected Attributes

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
 

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)
 

Detailed Description

Definition at line 146 of file DocumentElements.h.

Constructor & Destructor Documentation

◆ AbstractStructuredDocumentElementWithProperties()

Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::AbstractStructuredDocumentElementWithProperties ( const QString &  elementName,
unsigned int  firstBytePos,
const PropagatedProperties &  toBePropagated 
)

Definition at line 215 of file DocumentElements.cpp.

◆ ~AbstractStructuredDocumentElementWithProperties()

Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::~AbstractStructuredDocumentElementWithProperties ( )
virtual

Definition at line 223 of file DocumentElements.cpp.

Member Function Documentation

◆ addProperty()

void Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::addProperty ( const DocumentPropertyType &  propType,
const std::string &  value 
)

Definition at line 347 of file DocumentElements.cpp.

◆ getPropertyList()

const PropagatedProperties & Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::getPropertyList ( ) const

Definition at line 383 of file DocumentElements.cpp.

◆ setPropagatedValue()

void Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::setPropagatedValue ( const PropagatedProperties &  toBePropagated)

Definition at line 265 of file DocumentElements.cpp.

Member Data Documentation

◆ m_toBePropagated

PropagatedProperties Lima::DocumentsReader::AbstractStructuredDocumentElementWithProperties::m_toBePropagated
protected

Definition at line 166 of file DocumentElements.h.


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