Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UIcontrolMessenger.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4UIcontrolMessenger.hh 102562 2017-02-09 08:27:31Z gcosmo $
28 //
29 
30 #ifndef G4UIcontrolMessenger_h
31 #define G4UIcontrolMessenger_h 1
32 
33 #include "G4UImessenger.hh"
34 
35 class G4UIdirectory;
36 class G4UIcmdWithAString;
37 class G4UIcmdWithABool;
40 class G4UIcommand;
41 
42 // class description:
43 // This class is a concrete class of G4UImessenger which defines
44 // commands affecting to the G4UImanager. Commands defined by
45 // this messenger are
46 // /control/
47 // /control/macroPath
48 // /control/execute
49 // /control/loop
50 // /control/foreach
51 // /control/suppressAbortion
52 // /control/verbose
53 // /control/useDoublePrecision
54 // /control/saveHistory
55 // /control/stopSavingHistory
56 // /control/alias
57 // /control/unalias
58 // /control/listAlias
59 // /control/getEnv
60 // /control/getVal
61 // /control/echo
62 // /control/shell
63 // /control/manual
64 // /control/createHTML
65 // /control/maximumStoredHistory
66 // /control/if
67 // /control/doif
68 // /control/add
69 // /control/subtract
70 // /control/multiply
71 // /control/divide
72 // /control/strif
73 // /control/strdoif
74 // /control/ifBatch
75 // /control/ifInteractive
76 // /control/doifBatch
77 // /control/doifInteractive
78 
80 {
81  public:
84  void SetNewValue(G4UIcommand * command,G4String newValue);
86 
87  private:
88  G4UIdirectory * controlDirectory;
89  G4UIcmdWithAString * macroPathCommand;
90  G4UIcmdWithAString * ExecuteCommand;
91  G4UIcmdWithAnInteger * suppressAbortionCommand;
92  G4UIcmdWithAnInteger * verboseCommand;
93  G4UIcmdWithABool * doublePrecCommand;
94  G4UIcmdWithAString * historyCommand;
95  G4UIcmdWithoutParameter * stopStoreHistoryCommand;
96  G4UIcommand * aliasCommand;
97  G4UIcmdWithAString * unaliasCommand;
98  G4UIcmdWithoutParameter * listAliasCommand;
99  G4UIcmdWithAString * getEnvCmd;
100  G4UIcommand * getValCmd;
101  G4UIcmdWithAString * echoCmd;
102  G4UIcmdWithAString * shellCommand;
103  G4UIcommand * loopCommand;
104  G4UIcommand * foreachCommand;
105  G4UIcmdWithAString * ManualCommand;
106  G4UIcmdWithAString * HTMLCommand;
107  G4UIcmdWithAnInteger * maxStoredHistCommand;
108  G4UIcommand * ifCommand;
109  G4UIcommand * doifCommand;
110  G4UIcommand * addCommand;
111  G4UIcommand * subtractCommand;
112  G4UIcommand * multiplyCommand;
113  G4UIcommand * divideCommand;
114  G4UIcommand * remainderCommand;
115  G4UIcommand * strifCommand;
116  G4UIcommand * strdoifCommand;
117  G4UIcmdWithAString * ifBatchCommand;
118  G4UIcmdWithAString * ifInteractiveCommand;
119  G4UIcmdWithAString * doifBatchCommand;
120  G4UIcmdWithAString * doifInteractiveCommand;
121 };
122 
123 #endif
124 
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)