GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARBarFormat.h
1 #ifndef ARBarFormat_H
2 #define ARBarFormat_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2002-2017 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 #include <vector>
19 
20 #include "ARMTParameter.h"
21 #include "ARBar.h"
22 
23 /*@mkdoc
24 
25 @group:Barlines
26 
27 @tagname:\barFormat
28 @tagalias:
29 @tagtype:P
30 @tagnotation:describes the span of a barline.
31 @tagdesc
32 @tagend
33 
34 @params:
35 @param:style:string:system or staff:staff:true
36 @param:range:string:only for system style - indicates the range of staves covered by the bar:*none*:true
37 @paramdesc
38 - the **range** string must be in the form *"n-m"* where 'n' and 'm' are integer numbers denoting staff indexes (starting from 1)
39 
40 See the [Barlines](@EXAMPLES/barlines/) example.
41 @paramend
42 
43 */
44 
47 class ARBarFormat : public ARMTParameter
48 {
49  public:
50  typedef std::vector<std::pair<int, int> > TRanges;
52 
53  ARBarFormat();
54  ARBarFormat(const ARBarFormat&);
55  virtual ~ARBarFormat() {}
56 
57  virtual void setTagParameters (const TagParameterMap& params);
58 
59  virtual const char* getParamsStr() const { return kARBarFormatParams; };
60  virtual const char* getTagName() const { return "ARBarFormat"; };
61  virtual std::string getGMNName() const { return "\\barFormat"; };
62 
63  style getStyle() const { return fStyle; }
64  const ARBar::TRanges& getRanges() const { return fRanges; }
65  virtual bool IsStateTag() const { return true; }
66 
67  protected:
68  ARBar::TRanges getRanges (const NVstring &str);
69 
72 };
73 
74 #endif
ARBarFormat::kStyleSystem
Definition: ARBarFormat.h:51
ARBarFormat::fRanges
ARBar::TRanges fRanges
Definition: ARBarFormat.h:71
ARBarFormat::TRanges
std::vector< std::pair< int, int > > TRanges
Definition: ARBarFormat.h:50
ARBarFormat::getStyle
style getStyle() const
Definition: ARBarFormat.h:63
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARBar::TRanges
std::vector< std::pair< int, int > > TRanges
Definition: ARBar.h:54
ARBarFormat::kStyleStaff
Definition: ARBarFormat.h:51
ARBarFormat::kStyleRange
Definition: ARBarFormat.h:51
ARBarFormat::style
style
Definition: ARBarFormat.h:51
ARBarFormat::IsStateTag
virtual bool IsStateTag() const
Definition: ARBarFormat.h:65
ARBarFormat::getGMNName
virtual std::string getGMNName() const
Definition: ARBarFormat.h:61
ARBarFormat::getParamsStr
virtual const char * getParamsStr() const
Definition: ARBarFormat.h:59
NVstring
Definition: nvstring.h:21
ARBarFormat::fStyle
style fStyle
Definition: ARBarFormat.h:70
ARBarFormat::getRanges
const ARBar::TRanges & getRanges() const
Definition: ARBarFormat.h:64
ARBarFormat::getTagName
virtual const char * getTagName() const
Definition: ARBarFormat.h:60
ARBarFormat::ARBarFormat
ARBarFormat()
ARBarFormat
the bar format tag parameter.
Definition: ARBarFormat.h:47
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARBarFormat::~ARBarFormat
virtual ~ARBarFormat()
Definition: ARBarFormat.h:55
ARBarFormat::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)

Guido Project Copyright © 2019 Grame-CNCM