LibMusicXML  3.18
xml2brlManPageOah.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 ___xml2brlManPageOah___
14 #define ___xml2brlManPageOah___
15 
16 #include "xml2brlOah2ManPageGenerator.h"
17 
18 
19 namespace MusicXML2
20 {
21 
22 //______________________________________________________________________________
24 {
25  public:
26 
27  // creation
28  // ------------------------------------------------------
29 
31  string shortName,
32  string longName,
33  string description,
34  S_oahVisitor theOahVisitor);
35 
36  protected:
37 
38  // constructors/destructor
39  // ------------------------------------------------------
40 
42  string shortName,
43  string longName,
44  string description,
45  S_oahVisitor theOahVisitor);
46 
47  virtual ~xml2brlManPageGenerateAtom ();
48 
49  public:
50 
51  // set and get
52  // ------------------------------------------------------
53 
54  public:
55 
56  // public services
57  // ------------------------------------------------------
58 
59  S_oahValuedAtom handleOptionUnderName (
60  string optionName,
61  ostream& os);
62 
63  public:
64 
65  // visitors
66  // ------------------------------------------------------
67 
68  virtual void acceptIn (basevisitor* v);
69  virtual void acceptOut (basevisitor* v);
70 
71  virtual void browseData (basevisitor* v);
72 
73  public:
74 
75  // print
76  // ------------------------------------------------------
77 
78  void print (ostream& os) const;
79 
80  void printAtomOptionsValues (
81  ostream& os,
82  int valueFieldWidth) const;
83 
84  private:
85 
86  // private services
87  // ------------------------------------------------------
88 
89  void generateManPageData (ostream& os) const;
90 
91  private:
92 
93  // fields
94  // --------------------------------------
95 
96  S_oahVisitor fOahVisitor;
97 };
99 EXP ostream& operator<< (ostream& os, const S_xml2brlManPageGenerateAtom& elt);
100 
101 //______________________________________________________________________________
103 {
104  public:
105 
106  // creation
107  // ------------------------------------------------------
108 
109  static SMARTP<xml2brlManPageOah> create (
110  S_oahHandler handlerUpLink,
111  S_oahVisitor theOah2ManPageGenerator);
112 
113  SMARTP<xml2brlManPageOah> createCloneWithDetailedTrace ();
114 
115  public:
116 
117  // initialisation
118  // ------------------------------------------------------
119 
120  void initializeXml2brlManPageOah (
121  bool boolOptionsInitialValue,
123  theOah2ManPageGenerator);
124 
125  public:
126 
127  // constructors/destructor
128  // ------------------------------------------------------
129 
131  S_oahHandler handlerUpLink,
132  S_oahVisitor theOah2ManPageGenerator);
133 
134  virtual ~xml2brlManPageOah ();
135 
136  public:
137 
138  // set and get
139  // ------------------------------------------------------
140 
141  public:
142 
143  // quiet mode
144  // ------------------------------------------------------
145 
146  void enforceQuietness ();
147 
148  public:
149 
150  // consistency check
151  // ------------------------------------------------------
152 
153  virtual void checkOptionsConsistency ();
154 
155  public:
156 
157  // public services
158  // ------------------------------------------------------
159 
160  private:
161 
162  // private services
163  // ------------------------------------------------------
164 
165  void initializeManPageGenerateOptions (
166  bool boolOptionsInitialValue,
168  theOah2ManPageGenerator);
169 
170 #ifdef TRACE_OAH
171  void initializeManPageTraceOah (
172  bool boolOptionsInitialValue);
173 #endif
174 
175  public:
176 
177  // visitors
178  // ------------------------------------------------------
179 
180  virtual void acceptIn (basevisitor* v);
181  virtual void acceptOut (basevisitor* v);
182 
183  virtual void browseData (basevisitor* v);
184 
185  public:
186 
187  // print
188  // ------------------------------------------------------
189 
190  void printManPageOahelp ();
191 
192  void printManPageOahValues (int fieldWidth);
193 
194  private:
195 
196  // fields
197  // --------------------------------------
198 
200  fOah2ManPageGenerator;
201 };
203 EXP ostream& operator<< (ostream& os, const S_xml2brlManPageOah& elt);
204 
205 EXP extern S_xml2brlManPageOah gxml2brlManPageOah;
206 EXP extern S_xml2brlManPageOah gxml2brlManPageOahUserChoices;
207 EXP extern S_xml2brlManPageOah gxml2brlManPageOahWithDetailedTrace;
208 
209 //______________________________________________________________________________
210 EXP void initializeXml2brlManPageOahHandling (
211  S_oahHandler handler,
212  S_oahVisitor theOah2ManPageGenerator);
213 
214 
215 }
216 
217 
218 #endif
the smart pointer implementation
Definition: smartpointer.h:58
Definition: basevisitor.h:25
Definition: oahBasicTypes.h:59
Definition: oahBasicTypes.h:2854
Definition: xml2brlManPageOah.h:24
Definition: xml2brlManPageOah.h:103