コード例 #1
0
ファイル: FootnoteAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 std::ostream& NotationsAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, printObject, "print-object", hasPrintObject );
     }
     return os;
 }
コード例 #4
0
 std::ostream& NoteSizeAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, type, "type", hasType );
     }
     return os;
 }
コード例 #5
0
ファイル: OffsetAttributes.cpp プロジェクト: Webern/MxProg
 std::ostream& OffsetAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, sound, "sound", hasSound );
     }
     return os;
 }
コード例 #6
0
 std::ostream& CreditAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, page, "page", hasPage );
     }
     return os;
 }
コード例 #7
0
ファイル: DirectionAttributes.cpp プロジェクト: Webern/MxProg
 std::ostream& DirectionAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, placement, "placement", hasPlacement );
         streamAttribute( os, directive, "directive", hasDirective );
     }
     return os;
 }
コード例 #8
0
 std::ostream& TieAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, type, "type", hasType );
         streamAttribute( os, timeOnly, "time-only", hasTimeOnly );
     }
     return os;
 }
コード例 #9
0
 std::ostream& MidiDeviceAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, port, "port", hasPort );
         streamAttribute( os, id, "id", hasId );
     }
     return os;
 }
コード例 #10
0
 std::ostream& PartGroupAttributes::toStream( std::ostream& os ) const
 {
     if ( hasValues() )
     {
         streamAttribute( os, type, "type", hasType );
         streamAttribute( os, number, "number", hasNumber );
     }
     return os;
 }
コード例 #11
0
ファイル: BeamAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #12
0
 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;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
ファイル: BookmarkAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #15
0
 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;
 }
コード例 #16
0
ファイル: BarlineAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #17
0
 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;
 }
コード例 #18
0
 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;
 }
コード例 #19
0
ファイル: LyricAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #20
0
ファイル: PullOffAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #21
0
 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;
 }
コード例 #22
0
ファイル: LinkAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #23
0
ファイル: BracketAttributes.cpp プロジェクト: Webern/MxProg
 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;
 }
コード例 #24
0
 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;
 }
コード例 #25
0
ファイル: Options.cpp プロジェクト: WFRT/Comps
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);
}