Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

xmlelement Class Reference

A generic xml element representation. More...

#include <xml.h>

Inheritance diagram for xmlelement:

smartable List of all members.

Public Member Functions

void setValue (unsigned long value)
void setValue (long value)
void setValue (int value)
void setValue (float value)
void setValue (const string &value)
void setName (const string &name)
const string & getName () const
const string & getValue () const
long add (const Sxmlattribute &attr)
long add (const Sxmlelement &elt)
const vector< Sxmlelement > & elements () const
const vector< Sxmlattribute > & attributes () const
bool empty () const
void print (ostream &os) const

Protected Member Functions

 xmlelement (string name)
 xmlelement (string name, unsigned long value)
 xmlelement (string name, long value)
 xmlelement (string name, int value)
 xmlelement (string name, float value)
 xmlelement (string name, string value)

Friends

EXP friend SMARTP< xmlelementnew_xmlelement (string name)
EXP friend SMARTP< xmlelementnew_xmlelement (string name, unsigned long val)
EXP friend SMARTP< xmlelementnew_xmlelement (string name, long val)
EXP friend SMARTP< xmlelementnew_xmlelement (string name, int val)
EXP friend SMARTP< xmlelementnew_xmlelement (string name, float val)
EXP friend SMARTP< xmlelementnew_xmlelement (string name, string val)

Detailed Description

An element is represented by its name, its value, the lists of its attributes and its enclosed elements. Attributes and elements must be added in the required order.


Generated on Tue Mar 23 09:50:34 2004 for LibMusicXML by doxygen 1.3.3