25#include <unordered_map>
29#include "ObjectPool.h"
47using namespace header;
54 std::unordered_map<StaffCmper, size_t>
staves;
149 int m_maxBlankPages{};
Represents a document object that encapsulates the entire EnigmaXML structure.
Definition Document.h:67
const TextsPoolPtr & getTexts() const
Retrieves the const texts pool.
Definition Document.h:97
OthersPoolPtr & getOthers()
Retrieves the others pool.
Definition Document.h:80
const HeaderPtr & getHeader() const
Retrieves the const header.
Definition Document.h:72
MusxInstance< others::Page > calculatePageFromMeasure(Cmper partId, MeasCmper measureId) const
Searches pages to find the page that contains the measure.
Definition Document.cpp:36
const InstrumentInfo & getInstrumentForStaff(StaffCmper staffId) const
Get the instrument info for the given staffId.
Definition Document.cpp:183
int getMaxBlankPages() const
Returns the maximum number of blank pages in any part. This is calculated by factory::DocumentFactory...
Definition Document.h:110
const InstrumentMap & getInstruments() const
Returns the instrument map for this document. It is computed by the factory.
Definition Document.h:113
MusxInstance< others::StaffSystem > calculateSystemFromMeasure(Cmper partId, MeasCmper measureId) const
Searches systems to find the page that contains the measure.
Definition Document.cpp:54
const DetailsPoolPtr & getDetails() const
Retrieves the const others pool.
Definition Document.h:87
HeaderPtr & getHeader()
Retrieves the header.
Definition Document.h:70
bool calcHasVaryingSystemStaves(Cmper forPartId) const
Calculate if the current score/part has staves that differ from system to system.
Definition Document.cpp:199
const OptionsPoolPtr & getOptions() const
Retrieves the const options pool.
Definition Document.h:77
TextsPoolPtr & getTexts()
Retrieves the texts pool.
Definition Document.h:95
const OthersPoolPtr & getOthers() const
Retrieves the const others pool.
Definition Document.h:82
InstrumentMap createInstrumentMap(Cmper forPartId) const
Builds an instrument map for the specified linked part ID.
Definition Document.cpp:71
const EntryPoolPtr & getEntries() const
Retrieves the entry others pool.
Definition Document.h:92
DetailsPoolPtr & getDetails()
Retrieves the details pool.
Definition Document.h:85
OptionsPoolPtr & getOptions()
Retrieves the options pool.
Definition Document.h:75
EntryPoolPtr & getEntries()
Retrieves the entry pool.
Definition Document.h:90
Factory class for creating Document objects from XML.
Definition DocumentFactory.h:38
std::shared_ptr< OthersPool > OthersPoolPtr
Shared OthersPool pointer.
Definition ObjectPool.h:447
int16_t MeasCmper
Enigma meas Cmper (may be negative when not applicable)
Definition Fundamentals.h:64
std::shared_ptr< const T > MusxInstance
Defines the type of a musx instance stored in a pool.
Definition MusxInstance.h:35
std::shared_ptr< DetailsPool > DetailsPoolPtr
Shared DetailsPool pointer.
Definition ObjectPool.h:534
uint16_t Cmper
Enigma "comperator" key type.
Definition Fundamentals.h:55
std::shared_ptr< TextsPool > TextsPoolPtr
Shared OthersPool pointer.
Definition ObjectPool.h:606
std::shared_ptr< OptionsPool > OptionsPoolPtr
Shared OptionsPool pointer.
Definition ObjectPool.h:393
int16_t StaffCmper
Enigma staff (staffId) Cmper (may be negative when not applicable)
Definition Fundamentals.h:65
std::shared_ptr< EntryPool > EntryPoolPtr
Shared EntryPool pointer.
Definition ObjectPool.h:567
std::unordered_map< StaffCmper, InstrumentInfo > InstrumentMap
A list of instruments, which may be single- or multi-staff.
Definition Document.h:61
object model for musx file (enigmaxml)
Definition BaseClasses.h:36
Represents information about each instrument in the document. This is calculated from the staves,...
Definition Document.h:53
std::vector< StaffCmper > getSequentialStaves() const
Returns the staffIds in sequence as they appear in Scroll View in the score.
Definition Document.cpp:221
Cmper multistaffGroupId
The others::MultiStaffInstrumentGroup that defines the instrument. (May be zero.)
Definition Document.h:56
Cmper staffGroupId
The details::StaffGroup that visually represents the instrument. (May be zero.)
Definition Document.h:55
std::unordered_map< StaffCmper, size_t > staves
List of each staffId with its sequence index from top to bottom.
Definition Document.h:54