Base Framework
Classes | Public Member Functions | List of all members
Attributes Class Reference

List of XML attributes. More...

#include <base/xml/Attributes.h>

Inherits Object.

Classes

class  Attribute
 XML attribute. More...
 

Public Member Functions

 Attributes () noexcept
 
 Attributes (const Array< Attribute > &_attributes) noexcept
 
 Attributes (const Attributes &copy) noexcept
 
Attributesoperator= (const Attributes &assign) noexcept
 
HashTable< String, unsigned int > getHashTable () const
 
MemorySize getSize () const noexcept
 
const AttributegetAttribute (unsigned int index) const noexcept
 
const Attributeoperator[] (unsigned int index) const noexcept
 

Detailed Description

List of XML attributes.

Version
1.0
Examples
testsuite/sax.cpp.

Constructor & Destructor Documentation

◆ Attributes() [1/3]

Attributes::Attributes ( )
inlinenoexcept

Initializes the attributes.

◆ Attributes() [2/3]

Attributes::Attributes ( const Array< Attribute > &  _attributes)
inlinenoexcept

Initializes the attributes.

◆ Attributes() [3/3]

Attributes::Attributes ( const Attributes copy)
inlinenoexcept

Initializes XML attributes from other XML attributes.

Member Function Documentation

◆ getAttribute()

const Attribute& Attributes::getAttribute ( unsigned int  index) const
inlinenoexcept

Returns the attributes at the specified index.

◆ getHashTable()

HashTable<String, unsigned int> Attributes::getHashTable ( ) const
inline

Returns a hash table mapping attribute names to indices.

◆ getSize()

MemorySize Attributes::getSize ( ) const
inlinenoexcept

Returns the number of attributes in the list.

Examples
testsuite/sax.cpp.

◆ operator=()

Attributes& Attributes::operator= ( const Attributes assign)
inlinenoexcept

Assignemnt of attributes by attributes.

◆ operator[]()

const Attribute& Attributes::operator[] ( unsigned int  index) const
inlinenoexcept

Returns the attributes at the specified index.