MuseScore  3.4
Music composition and notation
stafftypelist.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2016 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __STAFFTYPELIST_H__
14 #define __STAFFTYPELIST_H__
15 
16 #include "stafftype.h"
17 
18 namespace Ms {
19 
20 class XmlReader;
21 
22 //---------------------------------------------------------
23 // StaffTypeList
24 // this list is instantiated for every staff
25 // to keep track of staff type changes
26 //---------------------------------------------------------
27 
28 class StaffTypeList : public std::map<int, StaffType> {
29 
30  public:
32  StaffType& staffType(const Fraction&);
33  const StaffType& staffType(const Fraction&) const;
34  StaffType* setStaffType(const Fraction&, const StaffType&);
35  void read(XmlReader&, Score*);
36  };
37 
38 }
39 
40 #endif
41 
42 
void read(XmlReader &, Score *)
Definition: stafftypelist.cpp:70
Definition: xml.h:67
Definition: stafftypelist.h:28
Definition: score.h:391
StaffType * setStaffType(const Fraction &, const StaffType &)
Definition: stafftypelist.cpp:50
Definition: aeolus.cpp:26
Definition: stafftype.h:173
StaffTypeList()
Definition: stafftypelist.h:31
Definition: xmlreader.h:28
Definition: fraction.h:46
StaffType & staffType(const Fraction &)
Definition: stafftypelist.cpp:38