Verovio
Source code documentation
iomei.h
1 // Name: iomei.h
3 // Author: Laurent Pugin
4 // Created: 2011
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_IOMEI_H__
9 #define __VRV_IOMEI_H__
10 
11 #include <sstream>
12 #include <stack>
13 
14 //----------------------------------------------------------------------------
15 
16 #include "doc.h"
17 #include "iobase.h"
18 
19 //----------------------------------------------------------------------------
20 
21 #include "pugixml.hpp"
22 
23 namespace vrv {
24 
25 class Abbr;
26 class Accid;
27 class Add;
28 class AltSymInterface;
29 class AnchoredText;
30 class Annot;
31 class AnnotScore;
32 class App;
33 class AreaPosInterface;
34 class Arpeg;
35 class Artic;
36 class BarLine;
37 class Beam;
38 class BeamSpan;
39 class BeatRpt;
40 class BracketSpan;
41 class Breath;
42 class BTrem;
43 class Caesura;
44 class Choice;
45 class Chord;
46 class Clef;
47 class ControlElement;
48 class Corr;
49 class Course;
50 class CpMark;
51 class Custos;
52 class Damage;
53 class Del;
54 class Dot;
55 class Dir;
56 class Div;
57 class DivLine;
58 class DurationInterface;
59 class Dynam;
60 class Ending;
61 class Episema;
62 class Expan;
63 class Expansion;
64 class F;
65 class Fb;
66 class Fig;
67 class Fing;
68 class Fermata;
69 class FloatingElement;
70 class FTrem;
71 class GenericLayerElement;
72 class Gliss;
73 class GraceGrp;
74 class Graphic;
75 class GrpSym;
76 class Hairpin;
77 class HalfmRpt;
78 class Harm;
79 class KeyAccid;
80 class KeySig;
81 class LinkingInterface;
82 class InstrDef;
83 class Label;
84 class LabelAbbr;
85 class Layer;
86 class LayerDef;
87 class LayerElement;
88 class Lb;
89 class Lem;
90 class Ligature;
91 class Liquescent;
92 class Lv;
93 class Mdiv;
94 class Measure;
95 class Mensur;
96 class MeterSig;
97 class MeterSigGrp;
98 class MNum;
99 class Mordent;
100 class MRest;
101 class MRpt;
102 class MRpt2;
103 class MSpace;
104 class MultiRest;
105 class MultiRpt;
106 class Nc;
107 class Neume;
108 class Note;
109 class Num;
110 class Octave;
111 class OffsetInterface;
112 class OffsetSpanningInterface;
113 class Orig;
114 class Oriscus;
115 class Ornam;
116 class Ossia;
117 class Page;
118 class PageElement;
119 class PageMilestoneEnd;
120 class Pages;
121 class Pb;
122 class Pedal;
123 class PgFoot;
124 class PgHead;
125 class Phrase;
126 class PitchInflection;
127 class PitchInterface;
128 class Plica;
129 class PlistInterface;
130 class PositionInterface;
131 class Proport;
132 class Quilisma;
133 class Rdg;
134 class Ref;
135 class Reg;
136 class Reh;
137 class Rend;
138 class RepeatMark;
139 class Rest;
140 class Restore;
141 class RunningElement;
142 class Score;
143 class ScoreDef;
144 class ScoreDefElement;
145 class ScoreDefInterface;
146 class Sb;
147 class Section;
148 class Sic;
149 class Slur;
150 class Space;
151 class Staff;
152 class Stem;
153 class Strophicus;
154 class Subst;
155 class Supplied;
156 class Surface;
157 class Svg;
158 class Syl;
159 class Syllable;
160 class Symbol;
161 class SymbolDef;
162 class SymbolTable;
163 class System;
164 class SystemElement;
165 class SystemMilestoneEnd;
166 class TabDurSym;
167 class TabGrp;
168 class Tempo;
169 class Text;
170 class TextDirInterface;
171 class TextElement;
172 class TextLayoutElement;
173 class Tie;
174 class TimePointInterface;
175 class TimeSpanningInterface;
176 class Trill;
177 class Tuning;
178 class Turn;
179 class Tuplet;
180 class Unclear;
181 class Verse;
182 class Zone;
183 
184 // Helper enums
186 enum class MatchLocation { Before, Here, After };
187 enum class RangeMatchLocation { BeforeStart, AtStart, BetweenStartEnd, AtEnd, AfterEnd };
189 
190 //----------------------------------------------------------------------------
191 // MEIOutput
192 //----------------------------------------------------------------------------
193 
199 class MEIOutput : public Output {
200 public:
203  MEIOutput(Doc *doc);
204  virtual ~MEIOutput();
206 
210  std::string Export() override;
211 
215  bool Skip(Object *object) const override;
216 
221  bool WriteObject(Object *object) override;
222  bool WriteObjectEnd(Object *object) override;
224 
229  void SetScoreBasedMEI(bool scoreBasedMEI) { m_scoreBasedMEI = scoreBasedMEI; }
231 
236  void SetBasic(bool basic) { m_basic = basic; }
237  bool GetBasic() const { return m_basic; }
239 
244  bool HasFilter() const;
245  void SetFirstPage(int page);
246  void SetLastPage(int page);
247  void SetFirstMeasure(const std::string &id);
248  void SetLastMeasure(const std::string &id);
249  void SetMdiv(const std::string &id);
250  void ResetFilter();
252 
257  bool IsScoreBasedMEI() const { return m_scoreBasedMEI; }
258  bool IsPageBasedMEI() const { return !m_scoreBasedMEI; }
259  bool IsSerializing() const { return m_serializing; }
261 
265  void SetIndent(int indent) { m_indent = indent; }
266 
270  void SetIgnoreHeader(bool ignoreHeader) { m_ignoreHeader = ignoreHeader; }
271 
275  void SetSerializing(bool serializing) { m_serializing = serializing; }
276 
280  void SetRemoveIds(bool removeIds) { m_removeIds = removeIds; }
281 
282 private:
286  void Reset();
287 
293  bool IsTreeObject(Object *object) const;
294 
299  bool HasValidFilter() const;
300  bool IsMatchingFilter() const;
301  void UpdateFilter(Object *object);
302  void UpdatePageFilter(Object *object);
303  void UpdateMeasureFilter(Object *object);
304  void UpdateMdivFilter(Object *object);
305  bool ProcessScoreBasedFilter(Object *object);
306  bool ProcessScoreBasedFilterEnd(Object *object);
307  void PruneAttributes(pugi::xml_node node);
309 
314  bool WriteObjectInternal(Object *object, bool useCustomScoreDef);
315  bool WriteObjectInternalEnd(Object *object);
316  void WriteStackedObjects();
317  void WriteStackedObjectsEnd();
319 
324  void WriteCustomScoreDef(ScoreDef *scoreDef);
325  void AdjustStaffDef(StaffDef *staffDef, Measure *measure);
326  bool AdjustLabel(Label *label);
328 
332  bool WriteDoc(Doc *doc);
333 
337  void WriteRevisionDesc(pugi::xml_node meiHead);
338 
342  void WriteXmlId(pugi::xml_node currentNode, Object *object);
343 
348  void WriteMdiv(pugi::xml_node currentNode, Mdiv *mdiv);
349  void WritePages(pugi::xml_node currentNode, Pages *pages);
350  void WriteScore(pugi::xml_node currentNode, Score *score);
352 
357  void WriteSection(pugi::xml_node currentNode, Section *section);
358  void WriteEnding(pugi::xml_node currentNote, Ending *ending);
359  void WriteExpansion(pugi::xml_node currentNote, Expansion *expansion);
360  void WritePb(pugi::xml_node currentNode, Pb *pb);
361  void WriteSb(pugi::xml_node currentNode, Sb *sb);
363 
368  void WritePage(pugi::xml_node currentNode, Page *page);
369  void WritePageElement(pugi::xml_node element, PageElement *object);
370  void WritePageMilestoneEnd(pugi::xml_node currentNode, PageMilestoneEnd *milestoneEnd);
371  void WriteSystem(pugi::xml_node currentNode, System *system);
372  void WriteSystemMilestoneEnd(pugi::xml_node currentNode, SystemMilestoneEnd *milestoneEnd);
373  void WriteScoreDef(pugi::xml_node currentNode, ScoreDef *scoreDef);
374  void WriteGrpSym(pugi::xml_node currentNode, GrpSym *grmSym);
375  void WritePgFoot(pugi::xml_node currentNode, PgFoot *pgFoot);
376  void WritePgHead(pugi::xml_node currentNode, PgHead *pgHead);
377  void WriteDiv(pugi::xml_node currentNode, Div *div);
378  void WriteStaffGrp(pugi::xml_node currentNode, StaffGrp *staffGrp);
379  void WriteStaffDef(pugi::xml_node currentNode, StaffDef *staffDef);
380  void WriteInstrDef(pugi::xml_node currentNode, InstrDef *instrDef);
381  void WriteLabel(pugi::xml_node currentNode, Label *label);
382  void WriteLabelAbbr(pugi::xml_node currentNode, LabelAbbr *labelAbbr);
383  void WriteLayerDef(pugi::xml_node currentNode, LayerDef *layerDef);
384  void WriteTuning(pugi::xml_node currentNode, Tuning *tuning);
385  void WriteCourse(pugi::xml_node currentNode, Course *course);
386  void WriteSymbolTable(pugi::xml_node currentNode, SymbolTable *symbolTable);
387  void WriteMeasure(pugi::xml_node currentNode, Measure *measure);
388  void WriteMeterSigGrp(pugi::xml_node currentNode, MeterSigGrp *meterSigGrp);
389  void WriteFb(pugi::xml_node currentNode, Fb *fb);
390  void WriteStaff(pugi::xml_node currentNode, Staff *staff);
391  void WriteOStaff(pugi::xml_node currentNode, Staff *oStaff);
392  void WriteLayer(pugi::xml_node currentNode, Layer *layer);
393  void WriteOssia(pugi::xml_node currentNode, Ossia *ossia);
395 
401  void WriteAccid(pugi::xml_node currentNode, Accid *accid);
402  void WriteArtic(pugi::xml_node currentNode, Artic *artic);
403  void WriteBarLine(pugi::xml_node currentNode, BarLine *barLine);
404  void WriteBeam(pugi::xml_node currentNode, Beam *beam);
405  void WriteBeatRpt(pugi::xml_node currentNode, BeatRpt *beatRpt);
406  void WriteBTrem(pugi::xml_node currentNode, BTrem *bTrem);
407  void WriteChord(pugi::xml_node currentNode, Chord *chord);
408  void WriteClef(pugi::xml_node currentNode, Clef *clef);
409  void WriteCustos(pugi::xml_node currentNode, Custos *custos);
410  void WriteDivLine(pugi::xml_node currentNode, DivLine *divLine);
411  void WriteDot(pugi::xml_node currentNode, Dot *dot);
412  void WriteEpisema(pugi::xml_node currentNode, Episema *episema);
413  void WriteFTrem(pugi::xml_node currentNode, FTrem *fTrem);
414  void WriteGenericLayerElement(pugi::xml_node currentNode, GenericLayerElement *element);
415  void WriteGraceGrp(pugi::xml_node currentNode, GraceGrp *graceGrp);
416  void WriteHalfmRpt(pugi::xml_node currentNode, HalfmRpt *halfmRpt);
417  void WriteKeyAccid(pugi::xml_node currentNode, KeyAccid *keyAccid);
418  void WriteKeySig(pugi::xml_node currentNode, KeySig *keySig);
419  void WriteLigature(pugi::xml_node currentNode, Ligature *ligature);
420  void WriteLiquescent(pugi::xml_node currentNode, Liquescent *liquescent);
421  void WriteMensur(pugi::xml_node currentNode, Mensur *mensur);
422  void WriteMeterSig(pugi::xml_node currentNode, MeterSig *meterSig);
423  void WriteMRest(pugi::xml_node currentNode, MRest *mRest);
424  void WriteMRpt(pugi::xml_node currentNode, MRpt *mRpt);
425  void WriteMRpt2(pugi::xml_node currentNode, MRpt2 *mRpt2);
426  void WriteMSpace(pugi::xml_node currentNode, MSpace *mSpace);
427  void WriteMultiRest(pugi::xml_node currentNode, MultiRest *multiRest);
428  void WriteMultiRpt(pugi::xml_node currentNode, MultiRpt *multiRpt);
429  void WriteNc(pugi::xml_node currentNode, Nc *nc);
430  void WriteNeume(pugi::xml_node currentNode, Neume *neume);
431  void WriteNote(pugi::xml_node currentNode, Note *note);
432  void WriteOriscus(pugi::xml_node currentNode, Oriscus *oriscus);
433  void WritePlica(pugi::xml_node currentNode, Plica *plica);
434  void WriteProport(pugi::xml_node currentNode, Proport *proport);
435  void WriteQuilisma(pugi::xml_node currentNode, Quilisma *quilisma);
436  void WriteStrophicus(pugi::xml_node currentNode, Strophicus *strophicus);
437  void WriteRest(pugi::xml_node currentNode, Rest *rest);
438  void WriteSpace(pugi::xml_node currentNode, Space *space);
439  void WriteStem(pugi::xml_node currentNode, Stem *stem);
440  void WriteSyllable(pugi::xml_node currentNode, Syllable *syllable);
441  void WriteTabDurSym(pugi::xml_node currentNode, TabDurSym *tabDurSym);
442  void WriteTabGrp(pugi::xml_node currentNode, TabGrp *tabGrp);
443  void WriteTuplet(pugi::xml_node currentNode, Tuplet *tuplet);
445 
450  void WriteAnchoredText(pugi::xml_node currentNode, AnchoredText *anchoredText);
451  void WriteAnnotScore(pugi::xml_node currentNode, AnnotScore *annotScore);
452  void WriteArpeg(pugi::xml_node currentNode, Arpeg *arpeg);
453  void WriteBeamSpan(pugi::xml_node currentNode, BeamSpan *beamSpan);
454  void WriteBracketSpan(pugi::xml_node currentNode, BracketSpan *bracketSpan);
455  void WriteBreath(pugi::xml_node currentNode, Breath *breath);
456  void WriteCaesura(pugi::xml_node currentNode, Caesura *caesura);
457  void WriteCpMark(pugi::xml_node currentNode, CpMark *cpMark);
458  void WriteDir(pugi::xml_node currentNode, Dir *dir);
459  void WriteDynam(pugi::xml_node currentNode, Dynam *dynam);
460  void WriteFermata(pugi::xml_node currentNode, Fermata *fermata);
461  void WriteFing(pugi::xml_node currentNode, Fing *fing);
462  void WriteGliss(pugi::xml_node currentNode, Gliss *gliss);
463  void WriteHairpin(pugi::xml_node currentNode, Hairpin *hairpin);
464  void WriteHarm(pugi::xml_node currentNode, Harm *harm);
465  void WriteLv(pugi::xml_node currentNode, Lv *lv);
466  void WriteMNum(pugi::xml_node currentNode, MNum *mnum);
467  void WriteMordent(pugi::xml_node currentNode, Mordent *mordent);
468  void WriteOctave(pugi::xml_node currentNode, Octave *octave);
469  void WriteOrnam(pugi::xml_node currentNode, Ornam *ornam);
470  void WritePedal(pugi::xml_node currentNode, Pedal *pedal);
471  void WritePhrase(pugi::xml_node currentNode, Phrase *phrase);
472  void WritePitchInflection(pugi::xml_node currentNode, PitchInflection *pitchInflection);
473  void WriteReh(pugi::xml_node currentNode, Reh *reh);
474  void WriteRepeatMark(pugi::xml_node currentNode, RepeatMark *repeatMark);
475  void WriteSlur(pugi::xml_node currentNode, Slur *slur);
476  void WriteTempo(pugi::xml_node currentNode, Tempo *tempo);
477  void WriteTie(pugi::xml_node currentNode, Tie *tie);
478  void WriteTrill(pugi::xml_node currentNode, Trill *trill);
479  void WriteTurn(pugi::xml_node currentNode, Turn *turn);
481 
486  void WriteF(pugi::xml_node currentNode, F *f);
487  void WriteFig(pugi::xml_node currentNode, Fig *fig);
488  void WriteLb(pugi::xml_node currentNode, Lb *lb);
489  void WriteNum(pugi::xml_node currentNode, Num *num);
490  void WriteRend(pugi::xml_node currentNode, Rend *rend);
491  void WriteSvg(pugi::xml_node currentNode, Svg *svg);
492  void WriteSymbol(pugi::xml_node currentNode, Symbol *symbol);
493  void WriteSymbolDef(pugi::xml_node currentNode, SymbolDef *symbolDef);
494  void WriteText(pugi::xml_node currentNode, Text *text);
496 
501  void WriteAbbr(pugi::xml_node currentNode, Abbr *abbr);
502  void WriteAdd(pugi::xml_node currentNode, Add *add);
503  void WriteAnnot(pugi::xml_node currentNode, Annot *annot);
504  void WriteApp(pugi::xml_node currentNode, App *app);
505  void WriteChoice(pugi::xml_node currentNode, Choice *choice);
506  void WriteCorr(pugi::xml_node currentNode, Corr *corr);
507  void WriteDamage(pugi::xml_node currentNode, Damage *damage);
508  void WriteDel(pugi::xml_node currentNode, Del *del);
509  void WriteExpan(pugi::xml_node currentNode, Expan *expan);
510  void WriteLem(pugi::xml_node currentNode, Lem *lem);
511  void WriteOrig(pugi::xml_node currentNode, Orig *orig);
512  void WriteRdg(pugi::xml_node currentNode, Rdg *rdg);
513  void WriteRef(pugi::xml_node currentNode, Ref *Ref);
514  void WriteReg(pugi::xml_node currentNode, Reg *Reg);
515  void WriteRestore(pugi::xml_node currentNode, Restore *restore);
516  void WriteSic(pugi::xml_node currentNode, Sic *sic);
517  void WriteSubst(pugi::xml_node currentNode, Subst *subst);
518  void WriteSupplied(pugi::xml_node currentNode, Supplied *supplied);
519  void WriteUnclear(pugi::xml_node currentNode, Unclear *unclear);
521 
526  void WriteVerse(pugi::xml_node currentNode, Verse *verse);
527  void WriteSyl(pugi::xml_node currentNode, Syl *syl);
528  void WriteZone(pugi::xml_node currentNode, Zone *zone);
529  void WriteSurface(pugi::xml_node currentNode, Surface *surface);
530  void WriteFacsimile(pugi::xml_node currentNode, Facsimile *facsimile);
531  void WriteGraphic(pugi::xml_node currentNode, Graphic *graphic);
533 
537  void WriteUnsupportedAttr(pugi::xml_node currentNode, Object *object);
538 
544  void WriteControlElement(pugi::xml_node element, ControlElement *object);
545  void WriteEditorialElement(pugi::xml_node element, EditorialElement *object);
546  void WriteLayerElement(pugi::xml_node element, LayerElement *object);
547  void WriteTextLayoutElement(pugi::xml_node element, TextLayoutElement *object);
548  void WriteRunningElement(pugi::xml_node element, RunningElement *object);
549  void WriteScoreDefElement(pugi::xml_node element, ScoreDefElement *object);
550  void WriteSystemElement(pugi::xml_node element, SystemElement *object);
551  void WriteTextElement(pugi::xml_node element, TextElement *object);
552  //
553  void WriteAltSymInterface(pugi::xml_node currentNode, AltSymInterface *interface);
554  void WriteAreaPosInterface(pugi::xml_node currentNode, AreaPosInterface *interface);
555  void WriteDurationInterface(pugi::xml_node currentNode, DurationInterface *interface);
556  void WriteLinkingInterface(pugi::xml_node currentNode, LinkingInterface *interface);
557  void WriteFacsimileInterface(pugi::xml_node element, FacsimileInterface *interface);
558  void WriteOffsetInterface(pugi::xml_node currentNode, OffsetInterface *interface);
559  void WriteOffsetSpanningInterface(pugi::xml_node currentNode, OffsetSpanningInterface *interface);
560  void WritePitchInterface(pugi::xml_node currentNode, PitchInterface *interface);
561  void WritePlistInterface(pugi::xml_node currentNode, PlistInterface *interface);
562  void WritePositionInterface(pugi::xml_node currentNode, PositionInterface *interface);
563  void WriteScoreDefInterface(pugi::xml_node currentNode, ScoreDefInterface *interface);
564  void WriteTextDirInterface(pugi::xml_node currentNode, TextDirInterface *interface);
565  void WriteTimePointInterface(pugi::xml_node currentNode, TimePointInterface *interface);
566  void WriteTimeSpanningInterface(pugi::xml_node currentNode, TimeSpanningInterface *interface);
568 
574  std::u32string EscapeSMuFL(std::u32string data);
575 
578  std::string IDToMeiStr(Object *element);
579  std::string DocTypeToStr(DocType type);
581 
582 public:
583  //
584 protected:
586  pugi::xml_node m_currentNode;
588  std::list<pugi::xml_node> m_nodeStack;
589 
590 private:
592  int m_indent;
594  bool m_scoreBasedMEI;
596  bool m_basic;
598  bool m_serializing;
599 
601  pugi::xml_node m_mei;
603  std::stack<Object *> m_boundaries;
605  std::deque<Object *> m_objectStack;
606 
609  bool m_hasFilter;
610  MatchLocation m_filterMatchLocation;
611  Object *m_firstFilterMatch;
612  int m_firstPage;
613  int m_currentPage;
614  int m_lastPage;
615  std::string m_firstMeasureID;
616  std::string m_lastMeasureID;
617  RangeMatchLocation m_measureFilterMatchLocation;
618  std::string m_mdivID;
619  MatchLocation m_mdivFilterMatchLocation;
621 
622  bool m_ignoreHeader;
623  bool m_removeIds;
624  SetOfConstObjects m_referredObjects;
625 };
626 
627 //----------------------------------------------------------------------------
628 // MEIOutputExtended
629 //----------------------------------------------------------------------------
630 
634 class MEIOutputExtended : public MEIOutput {
635 public:
638  MEIOutputExtended(Doc *doc);
640 
641  jsonxx::Object ExportScoreDef();
642 
643 private:
644  jsonxx::Object ToJson(const pugi::xml_document &doc);
645 };
646 
647 //----------------------------------------------------------------------------
648 // MEIInput
649 //----------------------------------------------------------------------------
650 
656 class MEIInput : public Input {
657 public:
658  // constructors and destructors
659  MEIInput(Doc *doc);
660  virtual ~MEIInput();
661 
662  bool Import(const std::string &mei) override;
663 
667  void SetDeserializing(bool deserializing) { m_deserializing = deserializing; }
668 
669 private:
670  bool ReadDoc(pugi::xml_node root);
671  bool ReadIncipits(pugi::xml_node root);
672 
674  bool ReadMdiv(Object *parent, pugi::xml_node parentNode, bool isVisible);
675  bool ReadMdivChildren(Object *parent, pugi::xml_node parentNode, bool isVisible);
676  bool ReadScore(Object *parent, pugi::xml_node parentNode);
677  bool ReadScoreScoreDef(Object *parent, pugi::xml_node parentNode);
679 
684  bool ReadPages(Object *parent, pugi::xml_node parentNode);
685  bool ReadPage(Object *parent, pugi::xml_node parentNode);
686  bool ReadPageChildren(Object *parent, pugi::xml_node parentNode);
687  bool ReadPageMilestoneEnd(Object *parent, pugi::xml_node milestoneEnd);
688  bool ReadSystem(Object *parent, pugi::xml_node system);
689  bool ReadSystemChildren(Object *parent, pugi::xml_node parentNode);
690  bool ReadSystemMilestoneEnd(Object *parent, pugi::xml_node milestoneEnd);
692 
697  bool ReadSection(Object *parent, pugi::xml_node section);
698  bool ReadSectionChildren(Object *parent, pugi::xml_node parentNode);
699  bool ReadEnding(Object *parent, pugi::xml_node ending);
700  bool ReadExpansion(Object *parent, pugi::xml_node expansion);
701  bool ReadPb(Object *parent, pugi::xml_node pb);
702  bool ReadSb(Object *parent, pugi::xml_node sb);
704 
714  bool ReadScoreDef(Object *parent, pugi::xml_node scoreDef);
715  bool ReadScoreDefChildren(Object *parent, pugi::xml_node parentNode);
716  bool ReadGrpSym(Object *parent, pugi::xml_node grpSym);
717  bool ReadPgFoot(Object *parent, pugi::xml_node pgFoot);
718  bool ReadPgHead(Object *parent, pugi::xml_node pgHead);
719  bool ReadDiv(Object *parent, pugi::xml_node div);
720  bool ReadRunningChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
721  bool ReadStaffGrp(Object *parent, pugi::xml_node staffGrp);
722  bool ReadStaffGrpChildren(Object *parent, pugi::xml_node parentNode);
723  bool ReadStaffDef(Object *parent, pugi::xml_node staffDef);
724  bool ReadStaffDefChildren(Object *parent, pugi::xml_node parentNode);
725  bool ReadInstrDef(Object *parent, pugi::xml_node instrDef);
726  bool ReadLabel(Object *parent, pugi::xml_node label);
727  bool ReadLabelAbbr(Object *parent, pugi::xml_node labelAbbr);
728  bool ReadTuning(Object *parent, pugi::xml_node tuning);
729  bool ReadOssia(Object *parent, pugi::xml_node ossia);
730  bool ReadTuningChildren(Object *parent, pugi::xml_node parentNode);
731  bool ReadCourse(Object *parent, pugi::xml_node course);
732  bool ReadSymbolTable(Object *parent, pugi::xml_node parentNode);
733  bool ReadMeasure(Object *parent, pugi::xml_node measure);
734  bool ReadMeasureChildren(Object *parent, pugi::xml_node parentNode);
735  bool ReadMeterSigGrp(Object *parent, pugi::xml_node meterSigGrp);
736  bool ReadMeterSigGrpChildren(Object *parent, pugi::xml_node parentNode);
737  bool ReadFb(Object *parent, pugi::xml_node fb);
738  bool ReadFbChildren(Object *parent, pugi::xml_node parentNode);
739  bool ReadNum(Object *parent, pugi::xml_node parentNode);
740  bool ReadStaff(Object *parent, pugi::xml_node staff);
741  bool ReadOStaff(Object *parent, pugi::xml_node oStaff);
742  bool ReadStaffChildren(Object *parent, pugi::xml_node parentNode);
743  bool ReadLayer(Object *parent, pugi::xml_node layer);
744  bool ReadLayerDef(Object *parent, pugi::xml_node layerDef);
745  bool ReadLayerDefChildren(Object *parent, pugi::xml_node parentNode);
746  bool ReadLayerChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
747  bool ReadTextChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
748  bool ReadSymbolDefChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
750 
755  bool ReadAccid(Object *parent, pugi::xml_node accid);
756  bool ReadArtic(Object *parent, pugi::xml_node artic);
757  bool ReadBarLine(Object *parent, pugi::xml_node barLine);
758  bool ReadBeam(Object *parent, pugi::xml_node beam);
759  bool ReadBeatRpt(Object *parent, pugi::xml_node beatRpt);
760  bool ReadBTrem(Object *parent, pugi::xml_node bTrem);
761  bool ReadChord(Object *parent, pugi::xml_node chord);
762  bool ReadClef(Object *parent, pugi::xml_node clef);
763  bool ReadCustos(Object *parent, pugi::xml_node custos);
764  bool ReadDivLine(Object *parent, pugi::xml_node divLine);
765  bool ReadDot(Object *parent, pugi::xml_node dot);
766  bool ReadEpisema(Object *parent, pugi::xml_node episema);
767  bool ReadFTrem(Object *parent, pugi::xml_node fTrem);
768  bool ReadGenericLayerElement(Object *parent, pugi::xml_node element);
769  bool ReadGraceGrp(Object *parent, pugi::xml_node graceGrp);
770  bool ReadHalfmRpt(Object *parent, pugi::xml_node halfmRpt);
771  bool ReadKeyAccid(Object *parent, pugi::xml_node keyAccid);
772  bool ReadKeySig(Object *parent, pugi::xml_node keySig);
773  bool ReadLigature(Object *parent, pugi::xml_node ligature);
774  bool ReadLiquescent(Object *parent, pugi::xml_node liquescent);
775  bool ReadMensur(Object *parent, pugi::xml_node mensur);
776  bool ReadMeterSig(Object *parent, pugi::xml_node meterSig);
777  bool ReadMRest(Object *parent, pugi::xml_node mRest);
778  bool ReadMRpt(Object *parent, pugi::xml_node mRpt);
779  bool ReadMRpt2(Object *parent, pugi::xml_node mRpt2);
780  bool ReadMSpace(Object *parent, pugi::xml_node mSpace);
781  bool ReadMultiRest(Object *parent, pugi::xml_node multiRest);
782  bool ReadMultiRpt(Object *parent, pugi::xml_node multiRpt);
783  bool ReadNc(Object *parent, pugi::xml_node nc);
784  bool ReadNeume(Object *parent, pugi::xml_node note);
785  bool ReadNote(Object *parent, pugi::xml_node note);
786  bool ReadOriscus(Object *parent, pugi::xml_node oriscus);
787  bool ReadPlica(Object *parent, pugi::xml_node plica);
788  bool ReadProport(Object *parent, pugi::xml_node proport);
789  bool ReadQuilisma(Object *parent, pugi::xml_node quilisma);
790  bool ReadRest(Object *parent, pugi::xml_node rest);
791  bool ReadSpace(Object *parent, pugi::xml_node space);
792  bool ReadStem(Object *parent, pugi::xml_node stem);
793  bool ReadStrophicus(Object *parent, pugi::xml_node strophicus);
794  bool ReadSyl(Object *parent, pugi::xml_node syl);
795  bool ReadSyllable(Object *parent, pugi::xml_node syllable);
796  bool ReadTabDurSym(Object *parent, pugi::xml_node tabDurSym);
797  bool ReadTabGrp(Object *parent, pugi::xml_node tabGrp);
798  bool ReadTuplet(Object *parent, pugi::xml_node tuplet);
799  bool ReadVerse(Object *parent, pugi::xml_node verse);
801 
806  bool ReadAnchoredText(Object *parent, pugi::xml_node anchoredText);
807  bool ReadArpeg(Object *parent, pugi::xml_node arpeg);
808  bool ReadBeamSpan(Object *parent, pugi::xml_node beamSpan);
809  bool ReadBracketSpan(Object *parent, pugi::xml_node bracketSpan);
810  bool ReadBreath(Object *parent, pugi::xml_node breath);
811  bool ReadCaesura(Object *parent, pugi::xml_node caesura);
812  bool ReadCpMark(Object *parent, pugi::xml_node cpMark);
813  bool ReadDir(Object *parent, pugi::xml_node dir, bool isStageDir = false);
814  bool ReadDynam(Object *parent, pugi::xml_node dynam);
815  bool ReadFermata(Object *parent, pugi::xml_node fermata);
816  bool ReadFing(Object *parent, pugi::xml_node fing);
817  bool ReadGliss(Object *parent, pugi::xml_node gliss);
818  bool ReadHairpin(Object *parent, pugi::xml_node hairpin);
819  bool ReadHarm(Object *parent, pugi::xml_node harm);
820  bool ReadLv(Object *parent, pugi::xml_node lv);
821  bool ReadMNum(Object *parent, pugi::xml_node mnum);
822  bool ReadMordent(Object *parent, pugi::xml_node mordent);
823  bool ReadOctave(Object *parent, pugi::xml_node octave);
824  bool ReadOrnam(Object *parent, pugi::xml_node ornam);
825  bool ReadPedal(Object *parent, pugi::xml_node pedal);
826  bool ReadPhrase(Object *parent, pugi::xml_node phrase);
827  bool ReadPitchInflection(Object *parent, pugi::xml_node pitchInflection);
828  bool ReadRepeatMark(Object *parent, pugi::xml_node repeatMark);
829  bool ReadReh(Object *parent, pugi::xml_node reh);
830  bool ReadSlur(Object *parent, pugi::xml_node slur);
831  bool ReadTempo(Object *parent, pugi::xml_node tempo);
832  bool ReadTie(Object *parent, pugi::xml_node tie);
833  bool ReadTrill(Object *parent, pugi::xml_node trill);
834  bool ReadTurn(Object *parent, pugi::xml_node turn);
836 
841  bool ReadF(Object *parent, pugi::xml_node f);
842  bool ReadFig(Object *parent, pugi::xml_node fig);
843  bool ReadLb(Object *parent, pugi::xml_node lb);
844  bool ReadRend(Object *parent, pugi::xml_node rend);
845  bool ReadSvg(Object *parent, pugi::xml_node svg);
846  bool ReadSymbol(Object *parent, pugi::xml_node symbol);
847  bool ReadSymbolDef(Object *parent, pugi::xml_node symbolDef);
848  bool ReadText(Object *parent, pugi::xml_node text, bool trimLeft, bool trimRight);
850 
856  bool ReadEditorialElement(Object *parent, pugi::xml_node app, EditorialLevel level, Object *filter = NULL);
857  bool ReadAbbr(Object *parent, pugi::xml_node abbr, EditorialLevel level, Object *filter = NULL);
858  bool ReadAdd(Object *parent, pugi::xml_node add, EditorialLevel level, Object *filter = NULL);
859  bool ReadAnnot(Object *parent, pugi::xml_node annot);
860  bool ReadAnnotScore(Object *parent, pugi::xml_node annot);
861  bool ReadApp(Object *parent, pugi::xml_node app, EditorialLevel level, Object *filter = NULL);
862  bool ReadAppChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
863  bool ReadChoice(Object *parent, pugi::xml_node choice, EditorialLevel level, Object *filter = NULL);
864  bool ReadChoiceChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
865  bool ReadCorr(Object *parent, pugi::xml_node corr, EditorialLevel level, Object *filter = NULL);
866  bool ReadDamage(Object *parent, pugi::xml_node damage, EditorialLevel level, Object *filter = NULL);
867  bool ReadDel(Object *parent, pugi::xml_node del, EditorialLevel level, Object *filter = NULL);
868  bool ReadExpan(Object *parent, pugi::xml_node expan, EditorialLevel level, Object *filter = NULL);
869  bool ReadLem(Object *parent, pugi::xml_node lem, EditorialLevel level, Object *filter = NULL);
870  bool ReadOrig(Object *parent, pugi::xml_node orig, EditorialLevel level, Object *filter = NULL);
871  bool ReadRdg(Object *parent, pugi::xml_node rdg, EditorialLevel level, Object *filter = NULL);
872  bool ReadRef(Object *parent, pugi::xml_node ref, EditorialLevel level, Object *filter = NULL);
873  bool ReadReg(Object *parent, pugi::xml_node reg, EditorialLevel level, Object *filter = NULL);
874  bool ReadRestore(Object *parent, pugi::xml_node restore, EditorialLevel level, Object *filter = NULL);
875  bool ReadSic(Object *parent, pugi::xml_node sic, EditorialLevel level, Object *filter = NULL);
876  bool ReadSubst(Object *parent, pugi::xml_node subst, EditorialLevel level, Object *filter = NULL);
877  bool ReadSubstChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
878  bool ReadSupplied(Object *parent, pugi::xml_node supplied, EditorialLevel level, Object *filter = NULL);
879  bool ReadUnclear(Object *parent, pugi::xml_node unclear, EditorialLevel level, Object *filter = NULL);
880  bool ReadEditorialChildren(Object *parent, pugi::xml_node supplied, EditorialLevel level, Object *filter = NULL);
882 
887  bool ReadControlElement(pugi::xml_node element, ControlElement *object);
888  bool ReadEditorialElement(pugi::xml_node element, EditorialElement *object);
889  bool ReadLayerElement(pugi::xml_node element, LayerElement *object);
890  bool ReadTextLayoutElement(pugi::xml_node element, TextLayoutElement *object);
891  bool ReadRunningElement(pugi::xml_node element, RunningElement *object);
892  bool ReadScoreDefElement(pugi::xml_node element, ScoreDefElement *object);
893  bool ReadSystemElement(pugi::xml_node element, SystemElement *object);
894  bool ReadTextElement(pugi::xml_node element, TextElement *object);
895 
896  bool ReadAltSymInterface(pugi::xml_node element, AltSymInterface *interface);
897  bool ReadAreaPosInterface(pugi::xml_node element, AreaPosInterface *interface);
898  bool ReadDurationInterface(pugi::xml_node element, DurationInterface *interface);
899  bool ReadLinkingInterface(pugi::xml_node element, LinkingInterface *interface);
900  bool ReadFacsimileInterface(pugi::xml_node element, FacsimileInterface *interface);
901  bool ReadOffsetInterface(pugi::xml_node element, OffsetInterface *interface);
902  bool ReadOffsetSpanningInterface(pugi::xml_node element, OffsetSpanningInterface *interface);
903  bool ReadPitchInterface(pugi::xml_node element, PitchInterface *interface);
904  bool ReadPlistInterface(pugi::xml_node element, PlistInterface *interface);
905  bool ReadPositionInterface(pugi::xml_node element, PositionInterface *interface);
906  bool ReadScoreDefInterface(pugi::xml_node element, ScoreDefInterface *interface);
907  bool ReadTextDirInterface(pugi::xml_node element, TextDirInterface *interface);
908  bool ReadTimePointInterface(pugi::xml_node element, TimePointInterface *interface);
909  bool ReadTimeSpanningInterface(pugi::xml_node element, TimeSpanningInterface *interface);
911 
916  bool ReadFacsimile(Doc *doc, pugi::xml_node facsimile);
917  bool ReadGraphic(Object *parent, pugi::xml_node graphic);
918  bool ReadSurface(Facsimile *parent, pugi::xml_node surface);
919  bool ReadTupletSpanAsTuplet(Measure *measure, pugi::xml_node tupletSpan);
920  bool ReadZone(Surface *parent, pugi::xml_node zone);
922 
926  void ReadUnsupportedAttr(pugi::xml_node element, Object *object);
927 
931  bool IsAnnotScore(pugi::xml_node element);
932 
936  bool IsEditorialElementName(std::string elementName);
937 
941  void NormalizeAttributes(pugi::xml_node &xmlElement);
942 
948  bool ReadScoreBasedMei(pugi::xml_node element, Score *parent);
949 
954  void SetMeiID(pugi::xml_node element, Object *object);
955  DocType StrToDocType(std::string type);
956  std::u32string LeftTrim(std::u32string str);
957  std::u32string RightTrim(std::u32string str);
958  bool ReadXMLComment(Object *object, pugi::xml_node element);
960 
965  // to MEI 5.0.0
966  void UpgradeKeySigTo_5_0(pugi::xml_node keySig);
967  void UpgradePageTo_5_0(Page *page);
968  void UpgradePgHeadFootTo_5_0(pugi::xml_node element);
969  void UpgradeMeasureTo_5_0(pugi::xml_node measure);
970  void UpgradeMeterSigTo_5_0(pugi::xml_node meterSig, MeterSig *vrvMeterSig);
971  void UpgradeScoreDefElementTo_5_0(pugi::xml_node scoreDefElement);
972  void UpgradeStaffTo_5_0(pugi::xml_node staff);
973  void UpgradeLayerElementTo_5_0(pugi::xml_node element);
974  void UpgradeRendTo_5_0(pugi::xml_node element);
975  // to MEI 4.0.0
976  void UpgradeBeatRptTo_4_0_0(pugi::xml_node beatRpt, BeatRpt *vrvBeatRpt);
977  void UpgradeDurGesTo_4_0_0(pugi::xml_node element, DurationInterface *interface);
978  void UpgradeFTremTo_4_0_0(pugi::xml_node fTrem, FTrem *vrvFTrem);
979  void UpgradeMensurTo_5_0(pugi::xml_node mensur, Mensur *vrvMensur);
980  void UpgradeMordentTo_4_0_0(pugi::xml_node mordent, Mordent *vrvMordent);
981  void UpgradeScoreDefElementTo_4_0_0(pugi::xml_node scoreDefElement, ScoreDefElement *vrvScoreDefElement);
982  void UpgradeStaffDefTo_4_0_0(pugi::xml_node staffDef, StaffDef *vrvStaffDef);
983  void UpgradeStaffGrpTo_4_0_0(pugi::xml_node staffGrp, StaffGrp *vrvStaffGrp);
984  void UpgradeTurnTo_4_0_0(pugi::xml_node turn, Turn *vrvTurn);
985  // to MEI 3.0.0 (Page-Based MEI only)
986  void UpgradeMeasureTo_3_0_0(Measure *measure, System *system);
987  void UpgradePageTo_3_0_0(Page *page, Doc *doc);
989 
994  void ReadAccidAttr(pugi::xml_node node, Object *object);
996 
997 public:
998  //
999 private:
1003  std::string m_filename;
1004 
1008  meiVersion_MEIVERSION m_meiversion;
1009 
1013  bool m_readingScoreBased;
1014 
1018  bool m_hasScoreDef;
1019 
1023  bool IsAllowed(std::string element, Object *filterParent);
1024 
1029  pugi::xml_node m_selectedMdiv;
1030 
1034  std::string m_comment;
1035 
1037  bool m_deserializing;
1038 
1039  //----------------//
1040  // Static members //
1041  //----------------//
1042 
1046  static const std::vector<std::string> s_editorialElementNames;
1047 };
1048 
1049 //----------------------------------------------------------------------------
1050 // MEIInputExtended
1051 //----------------------------------------------------------------------------
1052 
1056 class MEIInputExtended : public MEIInput {
1057 public:
1060  MEIInputExtended(Doc *doc);
1062 
1063  void ImportScoreDef(const jsonxx::Object &scoreDef);
1064 
1065 private:
1066  pugi::xml_document FromJson(const jsonxx::Object &json);
1067 };
1068 
1069 } // namespace vrv
1070 
1071 #endif
Definition: abbr.h:20
This class models the MEI <accid> element.
Definition: accid.h:41
Definition: add.h:20
This class is an interface for elements having a @altsym It is not an abstract class but should not b...
Definition: altsyminterface.h:30
This class is an interface for <anchoredText> elements at the measure level.
Definition: anchoredtext.h:25
This class models the MEI <annot> element.
Definition: annot.h:23
This class models the MEI <annot> element where @type is score.
Definition: annotscore.h:24
Definition: app.h:19
This class is an interface for elements implementing vertically and horizontally positionned elements...
Definition: areaposinterface.h:26
This class models the MEI <arpeg> element.
Definition: arpeg.h:31
Definition: artic.h:31
This class models the MEI <bTrem> element.
Definition: btrem.h:27
This class models the MEI <barLine> element.
Definition: barline.h:34
Definition: beam.h:284
This class models the MEI <beamSpan> element.
Definition: beamspan.h:36
This class models the MEI <beatRpt> element.
Definition: beatrpt.h:25
This class models the MEI <bracketSpan> element.
Definition: bracketspan.h:28
This class models the MEI <breath> element.
Definition: breath.h:24
This class models the MEI <caesura> element.
Definition: caesura.h:29
Definition: choice.h:20
This class represents a collection of notes in the same layer with the same onset time.
Definition: chord.h:44
This class models the MEI <clef> element.
Definition: clef.h:41
This class represents elements appearing within a measure.
Definition: controlelement.h:35
Definition: corr.h:20
This class models the MEI <course> element.
Definition: course.h:23
This class models the MEI <cpMark> element.
Definition: cpmark.h:26
Definition: custos.h:31
Definition: damage.h:20
Definition: del.h:20
This class models the MEI <dir> element.
Definition: dir.h:33
This class represents an MEI Div.
Definition: div.h:24
This class models the MEI <divLine> element.
Definition: divline.h:33
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
Definition: dot.h:23
This class is an interface for elements with duration, such as notes and rests.
Definition: durationinterface.h:39
Definition: dynam.h:33
This class is a base class for the editorial element containing musical content, for example <rgd> or...
Definition: editorial.h:43
This class represents a MEI ending.
Definition: ending.h:33
Definition: episema.h:29
Definition: expan.h:20
This class represents a MEI expansion.
Definition: expansion.h:26
This class models the MEI <f> element.
Definition: f.h:24
This class models the MEI <fTrem> element.
Definition: ftrem.h:25
Implements the facsimile element in MEI.
Definition: facsimile.h:31
Definition: facsimileinterface.h:27
This class models the MEI <fb> element.
Definition: fb.h:23
This class models the MEI <fermata> element.
Definition: fermata.h:32
This class models the MEI <fig> element.
Definition: fig.h:23
This class models the MEI <fing> element.
Definition: fing.h:25
This class holds generic elements existing within MEI <layer> but not supported by Verovio.
Definition: genericlayerelement.h:22
This class models the MEI <gliss> element.
Definition: gliss.h:28
Definition: gracegrp.h:20
Implements the graphic element in MEI.
Definition: graphic.h:30
This class represents a MEI grpSym.
Definition: grpsym.h:30
This class models the MEI <hairpin> element.
Definition: hairpin.h:32
This class models the MEI <halfmRpt> element.
Definition: halfmrpt.h:27
This class models the MEI <harm> element.
Definition: harm.h:32
This class is a base class for input classes.
Definition: iobase.h:73
This class models the MEI <instrDef> element.
Definition: instrdef.h:28
This class models the MEI <keyAccid> element.
Definition: keyaccid.h:33
This class models the MEI <keySig> element.
Definition: keysig.h:51
This class models the MEI <labelAbbr> element.
Definition: labelabbr.h:22
This class models the MEI <label> element.
Definition: label.h:22
Definition: layerdef.h:18
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a layer in a laid-out score (Doc).
Definition: layer.h:39
This class models the MEI <lb>
Definition: lb.h:23
Definition: lem.h:20
This class represents a collection of notes in the same layer with successive onset times,...
Definition: ligature.h:28
This class is an interface for elements having a link It is not an abstract class but should not be i...
Definition: linkinginterface.h:31
Definition: liquescent.h:28
This class models the MEI <lv> element.
Definition: lv.h:22
Extended MEIInput for partial import.
Definition: iomei.h:1056
This class is a file input stream for reading MEI files.
Definition: iomei.h:656
void SetDeserializing(bool deserializing)
Setter for the page-based deserialization flag (default is false).
Definition: iomei.h:667
Extended MEIOutput for partial exports.
Definition: iomei.h:634
This class is a file output stream for writing MEI files.
Definition: iomei.h:199
void SetSerializing(bool serializing)
Setter for the page-based serialization flag (default is false)
Definition: iomei.h:275
void SetRemoveIds(bool removeIds)
Setter for remove ids flag for the MEI output (default is false)
Definition: iomei.h:280
std::list< pugi::xml_node > m_nodeStack
Xml node stack.
Definition: iomei.h:588
void SetIndent(int indent)
Setter for indent for the MEI output (default is 3, -1 for tabs)
Definition: iomei.h:265
void SetIgnoreHeader(bool ignoreHeader)
Setter for ignore header flag for the MEI output (default is false)
Definition: iomei.h:270
pugi::xml_node m_currentNode
Current xml element.
Definition: iomei.h:586
bool Skip(Object *object) const override
Method for skipping under certain circumstances.
std::string Export() override
The main method for exporting the file to MEI.
bool HasFilter() const
Score based filtering by measure, page or mdiv.
bool WriteObject(Object *object) override
The main method for writing objects.
bool WriteObjectEnd(Object *object) override
Dummy object method that must be overridden in child class.
This class models the MEI <mNum> element.
Definition: mnum.h:31
This class models the MEI <mRest> element.
Definition: mrest.h:36
This class models the MEI <mRpt2> element.
Definition: mrpt2.h:26
This class models the MEI <mRpt> element.
Definition: mrpt.h:26
This class models the MEI <space> element.
Definition: mspace.h:22
This class represent a <mdiv> in page-based MEI.
Definition: mdiv.h:29
This class represents a measure in a page-based score (Doc).
Definition: measure.h:46
This class models the MEI <mensur> element.
Definition: mensur.h:34
This class represents a MEI meterSigGrp.
Definition: metersiggrp.h:32
This class models the MEI <meterSig> element.
Definition: metersig.h:34
This class models the MEI <mordent> element.
Definition: mordent.h:33
This class models the MEI <multiRest> element.
Definition: multirest.h:32
This class models the MEI <multiRpt> element.
Definition: multirpt.h:25
This class models the MEI <nc> element.
Definition: nc.h:43
This class models the MEI <neume> element.
Definition: neume.h:60
This class models the MEI <note> element.
Definition: note.h:69
This class models the MEI <num> element.
Definition: num.h:24
This class represents a basic object.
Definition: object.h:64
This class models the MEI <octave> element.
Definition: octave.h:31
This class is an interface for elements having a single visual offset, such as arpeg,...
Definition: offsetinterface.h:28
This class is an interface for elements having spanning visual offsets, such as slur,...
Definition: offsetinterface.h:72
Definition: orig.h:20
Definition: oriscus.h:28
This class models the MEI <ornam> element.
Definition: ornam.h:31
This class represents an ossia.
Definition: ossia.h:28
This class is a base class for output classes.
Definition: iobase.h:31
This class represents elements appearing within a page.
Definition: pageelement.h:25
This class represents a page in a laid-out score (Doc).
Definition: page.h:31
This class models an end milestone element and has no MEI equivalent.
Definition: pagemilestone.h:26
This class represent a <pages> in page-based MEI.
Definition: pages.h:27
This class represents a MEI pb in score-based MEI.
Definition: pb.h:25
This class models the MEI <pedal> element.
Definition: pedal.h:34
This class represents an MEI pgFoot.
Definition: pgfoot.h:22
This class represents an MEI pgHead.
Definition: pghead.h:22
Definition: phrase.h:19
This class models the MEI <dir> element.
Definition: pitchinflection.h:23
This class is an interface for elements with pitch, such as notes and neumes.
Definition: pitchinterface.h:28
Definition: plica.h:20
This class is an interface for elements having a single time point, such as tempo,...
Definition: plistinterface.h:29
This class is an interface for elements with a position on the staff, such as rests.
Definition: positioninterface.h:30
This class models the MEI <proport> element.
Definition: proport.h:23
Definition: quilisma.h:28
Definition: rdg.h:20
This class models the MEI <ref> element.
Definition: ref.h:23
Definition: reg.h:20
This class models the MEI <reh> element.
Definition: reh.h:30
This class models the MEI <rend> element.
Definition: rend.h:33
This class models the MEI <ornam> element.
Definition: repeatmark.h:32
This class models the MEI <rest> element.
Definition: rest.h:49
Definition: restore.h:20
This class represents running elements (headers and footers).
Definition: runningelement.h:28
This class represents a MEI sb in score-based MEI.
Definition: sb.h:25
This class is a base class for MEI scoreDef or staffDef elements.
Definition: scoredef.h:43
This class represents a MEI scoreDef.
Definition: scoredef.h:136
This class is an interface for elements implementing score attributes, such as <scoreDef>,...
Definition: scoredefinterface.h:42
This class represent a <score> in MEI.
Definition: score.h:30
This class represents a MEI section.
Definition: section.h:28
Definition: sic.h:20
Definition: slur.h:59
This class models the MEI <space> element.
Definition: space.h:23
This class represents a MEI staffDef.
Definition: staffdef.h:37
This class represents a MEI staffGrp.
Definition: staffgrp.h:39
This class represents a staff in a laid-out score (Doc).
Definition: staff.h:110
This class models a stem as a layer element part and as MEI <stem> element.
Definition: stem.h:27
Definition: strophicus.h:27
Definition: subst.h:22
Definition: supplied.h:20
Implements the surface element in MEI.
Definition: surface.h:30
Definition: svg.h:20
Syl is a TimeSpanningInterface for managing syllable connectors.
Definition: syl.h:38
This class models the MEI <mensur> element.
Definition: syllable.h:25
Definition: symboldef.h:20
This class models the MEI <symbol> element.
Definition: symbol.h:25
Definition: symboltable.h:20
This class represents elements appearing within a measure.
Definition: systemelement.h:26
This class represents a system in a laid-out score (Doc).
Definition: system.h:36
This class models an end milestone element at the system level.
Definition: systemmilestone.h:28
This class models the MEI <tabDurSym> element.
Definition: tabdursym.h:29
This class models the MEI <tabGrp> element.
Definition: tabgrp.h:24
This class is an interface for <tempo> elements at the measure level.
Definition: tempo.h:33
This class is an interface for elements implementing a text directive, such as <dir>,...
Definition: textdirinterface.h:26
Definition: textelement.h:22
This class models CDATA (text)
Definition: text.h:23
This class represents a text element featuring horizontal and vertical layout.
Definition: textlayoutelement.h:24
This class models the MEI <tie> element.
Definition: tie.h:32
This class is an interface for elements having a single time point, such as tempo,...
Definition: timeinterface.h:39
This class is an interface for spanning elements, such as slur, hairpin, etc.
Definition: timeinterface.h:145
This class models the MEI <trill> element.
Definition: trill.h:35
This class models the MEI <tuning> element.
Definition: tuning.h:23
Definition: tuplet.h:33
This class models the MEI <turn> element.
Definition: turn.h:33
Definition: unclear.h:20
Definition: verse.h:28
Implements the zone element in MEI.
Definition: zone.h:30