LibMusicXML 3.22
xmlattribute Class Reference

A generic xml attribute representation. More...

#include <xml.h>

Inheritance diagram for xmlattribute:
smartable

Public Member Functions

void setName (const std::string &name)
void setValue (const std::string &value)
void setValue (long value)
void setValue (int value)
void setValue (float value)
const std::string & getName () const
const std::string & getValue () const
 returns the attribute value as a string
 operator int () const
 returns the attribute value as a int
 operator long () const
 returns the attribute value as a long
 operator float () const
 returns the attribute value as a float
Public Member Functions inherited from smartable
unsigned refs () const
 gives the reference count of the object
void addReference ()
 addReference increments the ref count and checks for refCount overflow
void removeReference ()
 removeReference delete the object when refCount is zero

Static Public Member Functions

static SMARTP< xmlattributecreate ()

Additional Inherited Members

Protected Member Functions inherited from smartable
 smartable (const smartable &)
virtual ~smartable ()
 destructor checks for non-zero refCount
smartableoperator= (const smartable &)

Detailed Description

An attribute is represented by its name and its value.