LibMusicXML 3.22
musicxml< elt > Class Template Reference
Inheritance diagram for musicxml< elt >:
xmlelement ctree< xmlelement > visitable smartable

Public Member Functions

virtual void acceptIn (basevisitor &v)
virtual void acceptOut (basevisitor &v)
Public Member Functions inherited from xmlelement
int getInputLineNumber ()
void setValue (unsigned long value)
void setValue (long value)
void setValue (int value)
void setValue (float value)
void setValue (const std::string &value)
void setName (const std::string &name)
int getType () const
const std::string & getName () const
const std::string & getValue () const
 returns the element value as a string
 operator long () const
 returns the element value as a long
 operator int () const
 returns the element value as a int
 operator float () const
 returns the element value as a float
bool operator== (const xmlelement &elt) const
 elements comparison
bool operator!= (const xmlelement &elt) const
long add (const Sxmlattribute &attr)
 adds an attribute to the element
const std::vector< Sxmlattribute > & attributes () const
const Sxmlattribute getAttribute (const std::string &attrname) const
const std::string getAttributeValue (const std::string &attrname) const
long getAttributeLongValue (const std::string &attrname, long defaultvalue) const
int getAttributeIntValue (const std::string &attrname, int defaultvalue) const
float getAttributeFloatValue (const std::string &attrname, float defaultvalue) const
ctree< xmlelement >::iterator find (int type)
ctree< xmlelement >::iterator find (int type, ctree< xmlelement >::iterator start)
const std::string getValue (int subElementType)
int getIntValue (int subElementType, int defaultvalue)
long getLongValue (int subElementType, long defaultvalue)
float getFloatValue (int subElementType, float defaultvalue)
bool hasSubElement (int subElementType)
 returns true if subelement exists
bool hasSubElement (int subElementType, std::string value)
 returns true if subelement with given value exists
bool empty () const
Public Member Functions inherited from ctree< xmlelement >
branchselements ()
virtual void push (const treePtr &t)
virtual int size () const
iterator begin ()
iterator end ()
iterator erase (iterator i)
iterator insert (iterator before, const treePtr &value)
literator lbegin ()
literator lend ()
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< musicxml< elt > > new_musicxml (int inputLineNumber)
static SMARTP< musicxml< elt > > new_musicxml (const std::vector< Sxmlelement > &elts, int inputLineNumber)
Static Public Member Functions inherited from xmlelement
static SMARTP< xmlelementcreate (int inputLineNumber)
Static Public Member Functions inherited from ctree< xmlelement >
static treePtr new_tree ()

Protected Member Functions

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

Additional Inherited Members

Public Types inherited from xmlelement
typedef ctree< xmlelement >::iterator iterator
Public Types inherited from ctree< xmlelement >
typedef SMARTP< xmlelementtreePtr
 the node sub elements type
typedef std::vector< treePtrbranchs
 the node sub elements container type
typedef branchs::iterator literator
 the current level iterator type
typedef treeIterator< treePtriterator
 the top -> bottom iterator type
Protected Attributes inherited from xmlelement
int fType
int fInputLineNumber

Member Function Documentation

◆ acceptIn()

template<int elt>
virtual void acceptIn ( basevisitor & v)
inlinevirtual

Reimplemented from xmlelement.

◆ acceptOut()

template<int elt>
virtual void acceptOut ( basevisitor & v)
inlinevirtual

Reimplemented from xmlelement.