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

XMLMarker Class Reference
[XML Marker]

#include <XMLMarker.h>

Inheritance diagram for XMLMarker:

Alter Attributes Backup Chord Creator Direction DirectionType DynamicP Dynamics Identification Key Line Lyric Measure Notations Octave Pitch Rest Slur Stem Step Tuplet Type Voice Words Work List of all members.

Public Member Functions

 XMLMarker (XMLMarker *, QString nsp, QString nom, QXmlAttributes xml)
virtual ~XMLMarker ()
XMLMarkergetParent (QString)
virtual void printMe ()
virtual void characters (QString s)
virtual bool endXMLMarker ()
QString getName ()
virtual bool isValidDescendant (QString s)
virtual bool getStatus ()

Static Public Attributes

int nbinstance = 0

Protected Attributes

QString nom
QString error
bool status

Detailed Description

This class represent the marker that are piled in the musicXMLParser when reading of the MusicXML Files. It should be inherited by every marker. Here are the actions to perform to add a new marker


Constructor & Destructor Documentation

XMLMarker::XMLMarker XMLMarker p,
QString  nmsp,
QString  n,
QXmlAttributes  xmlatts
 

The status field is used to say if everything went correct

Parameters:
p The parent : Each Marker according to the DTD can only have a little set of parents.

XMLMarker::~XMLMarker  )  [virtual]
 

Destructor of the XML marker


Member Function Documentation

QString XMLMarker::getName  ) 
 

Returns:
the name of the emelent

XMLMarker * XMLMarker::getParent QString   ) 
 

Diplay a short descritpion of the marker

bool XMLMarker::getStatus  )  [virtual]
 

This method is called after the building of one element to see if it is worthy to go on

*

bool XMLMarker::isValidDescendant QString  s  )  [virtual]
 

This method is called to check if it is possible to build the descendant whose name is s In a sense it does the same thing like an XML validating parser. But since I know what can do my implementation that what MusicXML allow I prefer to code it Be aware that this is not always implemented since I'm lazy, made it possible because it note virtual voi method

Parameters:
the name of the descendant

Reimplemented in Alter, Attributes, Backup, Lyric, Measure, Notations, and Pitch.


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:38 2004 for Alternate Take by doxygen 1.3.6