std::ostream& FootnoteAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, justify, "justify", hasJustify ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); streamAttribute( os, halign, "halign", hasHalign ); streamAttribute( os, underline, "underline", hasUnderline ); streamAttribute( os, overline, "overline", hasOverline ); streamAttribute( os, lineThrough, "line-through", hasLineThrough ); streamAttribute( os, rotation, "rotation", hasRotation ); streamAttribute( os, letterSpacing, "letter-spacing", hasLetterSpacing ); streamAttribute( os, lineHeight, "line-height", hasLineHeight ); streamAttribute( os, lang, "xml:lang", hasLang ); streamAttribute( os, space, "xml:space", hasSpace ); streamAttribute( os, enclosure, "enclosure", hasEnclosure ); } return os; }
std::ostream& SlurAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); streamAttribute( os, number, "number", hasNumber ); streamAttribute( os, lineType, "line-type", hasLineType ); streamAttribute( os, dashLength, "dash-length", hasDashLength ); streamAttribute( os, spaceLength, "space-length", hasSpaceLength ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, placement, "placement", hasPlacement ); streamAttribute( os, orientation, "orientation", hasOrientation ); streamAttribute( os, bezierOffset, "bezier-offset", hasBezierOffset ); streamAttribute( os, bezierOffset2, "bezier-offset2", hasBezierOffset2 ); streamAttribute( os, bezierX, "bezier-x", hasBezierX ); streamAttribute( os, bezierY, "bezier-y", hasBezierY ); streamAttribute( os, bezierX2, "bezier-x2", hasBezierX2 ); streamAttribute( os, bezierY2, "bezier-y2", hasBezierY2 ); streamAttribute( os, color, "color", hasColor ); } return os; }
std::ostream& NotationsAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, printObject, "print-object", hasPrintObject ); } return os; }
std::ostream& NoteSizeAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); } return os; }
std::ostream& OffsetAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, sound, "sound", hasSound ); } return os; }
std::ostream& CreditAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, page, "page", hasPage ); } return os; }
std::ostream& DirectionAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, placement, "placement", hasPlacement ); streamAttribute( os, directive, "directive", hasDirective ); } return os; }
std::ostream& TieAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); streamAttribute( os, timeOnly, "time-only", hasTimeOnly ); } return os; }
std::ostream& MidiDeviceAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, port, "port", hasPort ); streamAttribute( os, id, "id", hasId ); } return os; }
std::ostream& PartGroupAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); streamAttribute( os, number, "number", hasNumber ); } return os; }
std::ostream& BeamAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, number, "number", hasNumber ); streamAttribute( os, repeater, "repeater", hasRepeater ); streamAttribute( os, fan, "fan", hasFan ); } return os; }
std::ostream& BeatRepeatAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); streamAttribute( os, slashes, "slashes", hasSlashes ); streamAttribute( os, useDots, "use-dots", hasUseDots ); } return os; }
std::ostream& GroupSymbolAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); } return os; }
std::ostream& BookmarkAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, id, "id", hasId ); streamAttribute( os, name, "name", hasName ); streamAttribute( os, element, "element", hasElement ); streamAttribute( os, position, "position", hasPosition ); } return os; }
std::ostream& FretAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); } return os; }
std::ostream& BarlineAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, location, "location", hasLocation ); streamAttribute( os, segno, "segno", hasSegno ); streamAttribute( os, coda, "coda", hasCoda ); streamAttribute( os, divisions, "divisions", hasDivisions ); } return os; }
std::ostream& PrintAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, staffSpacing, "staff-spacing", hasStaffSpacing ); streamAttribute( os, newSystem, "new-system", hasNewSystem ); streamAttribute( os, newPage, "new-page", hasNewPage ); streamAttribute( os, blankPage, "blank-page", hasBlankPage ); streamAttribute( os, pageNumber, "page-number", hasPageNumber ); } return os; }
std::ostream& FunctionAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); } return os; }
std::ostream& LyricAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, number, "number", hasNumber ); streamAttribute( os, name, "name", hasName ); streamAttribute( os, justify, "justify", hasJustify ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, placement, "placement", hasPlacement ); streamAttribute( os, color, "color", hasColor ); streamAttribute( os, printObject, "print-object", hasPrintObject ); } return os; }
std::ostream& PullOffAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, type, "type", hasType ); streamAttribute( os, number, "number", hasNumber ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); streamAttribute( os, placement, "placement", hasPlacement ); } return os; }
std::ostream& BendAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); streamAttribute( os, color, "color", hasColor ); streamAttribute( os, accelerate, "accelerate", hasAccelerate ); streamAttribute( os, beats, "beats", hasBeats ); streamAttribute( os, firstBeat, "first-beat", hasFirstBeat ); streamAttribute( os, lastBeat, "last-beat", hasLastBeat ); } return os; }
std::ostream& LinkAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, href, "xlink:href", hasHref ); streamAttribute( os, type, "xlink:type", hasType ); streamAttribute( os, role, "xlink:role", hasRole ); streamAttribute( os, title, "xlink:title", hasTitle ); streamAttribute( os, show, "xlink:show", hasShow ); streamAttribute( os, actuate, "xlink:actuate", hasActuate ); streamAttribute( os, name, "name", hasName ); streamAttribute( os, element, "element", hasElement ); streamAttribute( os, position, "position", hasPosition ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); } return os; }
std::ostream& BracketAttributes::toStream( std::ostream& os ) const { if( !hasValues() ) { return os; } streamAttribute( os, type, "type", hasType ); streamAttribute( os, number, "number", hasNumber ); streamAttribute( os, lineEnd, "line-end", hasLineEnd ); streamAttribute( os, endLength, "end-length", hasEndLength ); streamAttribute( os, lineType, "line-type", hasLineType ); streamAttribute( os, dashLength, "dash-length", hasDashLength ); streamAttribute( os, spaceLength, "space-length", hasSpaceLength ); streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, color, "color", hasColor ); return os; }
std::ostream& DelayedTurnAttributes::toStream( std::ostream& os ) const { if ( hasValues() ) { streamAttribute( os, defaultX, "default-x", hasDefaultX ); streamAttribute( os, defaultY, "default-y", hasDefaultY ); streamAttribute( os, relativeX, "relative-x", hasRelativeX ); streamAttribute( os, relativeY, "relative-y", hasRelativeY ); streamAttribute( os, fontFamily, "font-family", hasFontFamily ); streamAttribute( os, fontStyle, "font-style", hasFontStyle ); streamAttribute( os, fontSize, "font-size", hasFontSize ); streamAttribute( os, fontWeight, "font-weight", hasFontWeight ); streamAttribute( os, placement, "placement", hasPlacement ); streamAttribute( os, startNote, "start-note", hasStartNote ); streamAttribute( os, trillStep, "trill-step", hasTrillStep ); streamAttribute( os, twoNoteTurn, "two-note-turn", hasTwoNoteTurn ); streamAttribute( os, accelerate, "accelerate", hasAccelerate ); streamAttribute( os, beats, "beats", hasBeats ); streamAttribute( os, secondBeat, "second-beat", hasSecondBeat ); streamAttribute( os, lastBeat, "last-beat", hasLastBeat ); streamAttribute( os, slash, "slash", hasSlash ); } return os; }
bool Options::hasValue(const std::string& iKey) const { std::map<std::string,std::string>::iterator it = mMap.find(iKey); return hasValues(iKey) && !isVector(it->second); }