LibMusicXML 3.18
generalOah.h
1/*
2 MusicXML Library
3 Copyright (C) Grame 2006-2013
4
5 This Source Code Form is subject to the terms of the Mozilla Public
6 License, v. 2.0. If a copy of the MPL was not distributed with this
7 file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9 Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10 research@grame.fr
11*/
12
13#ifndef ___generalOah___
14#define ___generalOah___
15
16#include <set>
17
18#include "exports.h"
19
20#include "oahOah.h"
21
22
23namespace MusicXML2
24{
25
26//______________________________________________________________________________
27class generalOah : public oahGroup
28{
29 public:
30
31 static SMARTP<generalOah> create (
32 S_oahHandler handlerUpLink);
33
34 SMARTP<generalOah> createCloneWithTrueValues (); // JMI
35
36 public:
37
38 // initialisation
39 // ------------------------------------------------------
40
41 void initializeGeneralOah (
42 bool boolOptionsInitialValue);
43
44 protected:
45
46 // constructors/destructor
47 // ------------------------------------------------------
48
50 S_oahHandler handlerUpLink);
51
52 virtual ~generalOah ();
53
54 public:
55
56 // quiet mode
57 // ------------------------------------------------------
58
59 void enforceQuietness ();
60
61 public:
62
63 // consistency check
64 // ------------------------------------------------------
65
66 virtual void checkOptionsConsistency ();
67
68 public:
69
70 // set and get
71 // ------------------------------------------------------
72
73/* JMI ???
74 void setAllGeneralTraceOah (
75 bool boolOptionsInitialValue);
76 */
77
78 public:
79
80 // public services
81 // ------------------------------------------------------
82
83 private:
84
85 // private services
86 // ------------------------------------------------------
87
88 void initializeGeneralWarningAndErrorsOptions (
89 bool boolOptionsInitialValue);
90
91 void initializeGeneralCPUUsageOptions (
92 bool boolOptionsInitialValue);
93
94 public:
95
96 // visitors
97 // ------------------------------------------------------
98
99 virtual void acceptIn (basevisitor* v);
100 virtual void acceptOut (basevisitor* v);
101
102 virtual void browseData (basevisitor* v);
103
104 public:
105
106 // print
107 // ------------------------------------------------------
108
109 void printGeneralOahHelp ();
110
111 void printGeneralOahValues (int fieldWidth);
112
113 public:
114
115 // translation date
116 // --------------------------------------
117
118 string fTranslationDate;
119
120 // warning and error handling
121 // --------------------------------------
122
123 bool fQuiet;
124 bool fDontShowErrors;
125 bool fDontAbortOnErrors;
126 bool fDisplaySourceCodePosition;
127
128 // CPU usage
129 // --------------------------------------
130
131 bool fDisplayCPUusage;
132};
134EXP ostream& operator<< (ostream& os, const S_generalOah& elt);
135
136EXP extern S_generalOah gGeneralOah;
137EXP extern S_generalOah gGeneralOahUserChoices;
138EXP extern S_generalOah gGeneralOahWithDetailedTrace;
139
140//______________________________________________________________________________
141void initializeGeneralOahHandling (
142 S_oahHandler handler);
143
144
145}
146
147
148#endif
the smart pointer implementation
Definition: smartpointer.h:58
Definition: basevisitor.h:25
Definition: generalOah.h:28
Definition: oahBasicTypes.h:2854