10 #ifndef _STRUS_ANALYZER_DOCUMENT_ATTRIBUTE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_DOCUMENT_ATTRIBUTE_HPP_INCLUDED
29 :m_name(n),m_value(v){}
31 #if __cplusplus >= 201103L
38 :m_name(o.m_name),m_value(o.m_value){}
43 const std::string&
name()
const {
return m_name;}
46 const std::string&
value()
const {
return m_value;}
const std::string & name() const
Get the name of the attribute.
Definition: documentAttribute.hpp:43
Structure describing a document attribute.
Definition: documentAttribute.hpp:20
DocumentAttribute(const DocumentAttribute &o)
Copy constructor.
Definition: documentAttribute.hpp:37
const std::string & value() const
Get the value of the attribute.
Definition: documentAttribute.hpp:46
DocumentAttribute()
Default constructor.
Definition: documentAttribute.hpp:24
DocumentAttribute(const std::string &n, const std::string &v)
Constructor.
Definition: documentAttribute.hpp:28