GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARSpecial.h
1 #ifndef ARSpecial_H
2 #define ARSpecial_H
3 /*
4  GUIDO Library
5  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
6  Copyright (C) 2002-2017 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include "ARMTParameter.h"
18 
19 /*@mkdoc
20 
21 @group:Miscellaneous
22 
23 @tagname:\special
24 @tagalias:
25 @tagtype:P
26 @tagnotation:insert a musical glyph
27 @tagdesc
28 @tagend
29 
30 @params:
31 @param:char:string:the character to display:*none*:false
32 @paramdesc
33 **char** may be specified as:
34 
35 - a litteral character
36 - an hexadecimal number i.e. a number prefixed with "\x" (e.g. "\xa0")
37 - an octal number i.e. a number prefixed with "\o" (e.g. "\o130")
38 - a decimal number i.e. a number prefixed with "\"
39 
40 See the [Special](@EXAMPLES/space/) example.
41 @paramend
42 
43 */
44 
47 class ARSpecial : public ARMTParameter
48 {
49  public:
50  ARSpecial();
51  virtual ~ARSpecial() {}
52 
53  virtual void setTagParameters (const TagParameterMap& params);
54 
55  virtual const char* getParamsStr() const { return kARSpecialParams; };
56  virtual const char* getTagName() const { return "ARSpecial"; };
57  virtual std::string getGMNName() const { return "\\special"; };
58 
59  unsigned char getDrawChar() const { return mDrawChar; }
60 
61  protected:
62  unsigned char mDrawChar; // may become int...
63 
64  private:
65  unsigned char string2char (const char* str) const;
66 };
67 
68 #endif
ARSpecial::getGMNName
virtual std::string getGMNName() const
Definition: ARSpecial.h:57
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARSpecial::mDrawChar
unsigned char mDrawChar
Definition: ARSpecial.h:62
ARSpecial::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)
ARSpecial::getTagName
virtual const char * getTagName() const
Definition: ARSpecial.h:56
ARSpecial
not yet documented
Definition: ARSpecial.h:47
ARSpecial::ARSpecial
ARSpecial()
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARSpecial::getParamsStr
virtual const char * getParamsStr() const
Definition: ARSpecial.h:55
ARSpecial::~ARSpecial
virtual ~ARSpecial()
Definition: ARSpecial.h:51
ARSpecial::getDrawChar
unsigned char getDrawChar() const
Definition: ARSpecial.h:59

Guido Project Copyright © 2019 Grame-CNCM