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

XML attribute. More...

#include <base/xml/Attributes.h>

Inherits Object.

Public Member Functions

 Attribute () noexcept
 
 Attribute (const String &_name, const String &_value) noexcept
 
 Attribute (const Attribute &copy) noexcept
 
Attributeoperator= (const Attribute &assign) noexcept
 
const StringgetName () const noexcept
 
const StringgetValue () const noexcept
 

Detailed Description

XML attribute.

Version
1.0
Examples
testsuite/sax.cpp.

Constructor & Destructor Documentation

◆ Attribute() [1/3]

Attributes::Attribute::Attribute ( )
inlinenoexcept

Initializes attribute.

◆ Attribute() [2/3]

Attributes::Attribute::Attribute ( const String _name,
const String _value 
)
inlinenoexcept

Initializes attribute.

◆ Attribute() [3/3]

Attributes::Attribute::Attribute ( const Attribute copy)
inlinenoexcept

Initializes attribute from attribute.

Member Function Documentation

◆ getName()

const String& Attributes::Attribute::getName ( ) const
inlinenoexcept

Returns the name of the attribute.

Examples
testsuite/sax.cpp.

◆ getValue()

const String& Attributes::Attribute::getValue ( ) const
inlinenoexcept

Returns the value of the attribute.

Examples
testsuite/sax.cpp.

◆ operator=()

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

Assignment of attribute by attribute.