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

TBarline Class Reference

Represents a MusicXML barline element. More...

#include <TBarline.h>

Inheritance diagram for TBarline:

TMusicData visitable smartable List of all members.

Public Types

enum  {
  undefined = 0, right = 1, left, middle,
  lastloc = middle
}
enum  {
  none = 1, regular, dotted, heavy,
  light_light, light_heavy, heavy_light, heavy_heavy,
  last = heavy_heavy
}

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setLocation (int loc)
void setBarStyle (int style)
int getLocation () const
int getBarStyle () const
SWavyLinewavyLine ()
SSegnosegno ()
SCodacoda ()
SFermatafermata ()
SEndingending ()
SRepeatrepeat ()

Static Public Member Functions

const string xmllocation (int d)
 convert an integer location to a MusicXML string

int xmllocation (const string str)
 convert an MusicXML string to an integer location

const string xmlstyle (int d)
 convert an integer bar style to a MusicXML string

int xmlstyle (const string str)
 convert an MusicXML string to an integer bar style


Friends

EXP friend SMARTP< TBarlinenewBarline ()

Detailed Description

If a barline is other than a normal single barline, it should be represented by a barline element that describes it. This includes information about repeats and multiple endings, as well as line style. The two fermata elements allow for fermatas on both sides of the barline (the lower one inverted).
Barlines have a location attribute.It must match where the barline element occurs within the rest of the musical data in the score. If location is left, it should be the first element in the measure; if location is right, it should be the last element. If no location is specified, the right barline is the default.
The MusicXML barline element is defined in barline.dtd.


Generated on Tue Mar 23 09:49:55 2004 for LibMusicXML by doxygen 1.3.3