GEMC  1.8
Geant4 Monte-Carlo Framework
usage.h
Go to the documentation of this file.
1 
9 #ifndef gemc_OPTIONS_H
10 #define gemc_OPTIONS_H
11 
12 // %%%%%%%%%%
13 // G4 headers
14 // %%%%%%%%%%
15 #include "G4VisManager.hh"
16 
17 // %%%%%%%%%%%
18 // Qt4 headers
19 // %%%%%%%%%%%
20 #include <QDomDocument>
21 #include <QtGui>
22 #include <QString>
23 
24 // %%%%%%%%%%%
25 // C++ headers
26 // %%%%%%%%%%%
27 #include <iostream>
28 #include <map>
29 #include <vector>
30 #include <string>
31 #include <ctime>
32 #include <fstream>
33 using namespace std;
34 
43 class opts
44 {
45  public:
46  double arg;
47  string args;
48  string name;
49  string help;
50  int type;
51  string ctgr;
52 };
53 
54 
59 class gemc_opts
60 {
61  public:
62 
63  gemc_opts();
64  ~gemc_opts();
65  void Scan_gcard(string file);
66  int Set(int argc, char **args);
67 
68  map<string, opts> args;
69 
70  vector<opts> get_args(string);
71 };
72 
73 vector<string> init_dmesg(gemc_opts);
74 vector<string> init_dvmesg(gemc_opts, G4VisManager*);
75 vector<string> get_info(string);
76 
77 
78 
79 #endif
80 
81 
82 
83 
84 
string help
help for the argument variable.
Definition: usage.h:49
vector< string > init_dmesg(gemc_opts)
General Initialization Routine.
Definition: dmesg_init.cc:21
STL namespace.
string name
name to be displayed for the argument variable.
Definition: usage.h:48
Definition: usage.h:43
double arg
double assigned to argument.
Definition: usage.h:46
int type
0 = number, 1 = string
Definition: usage.h:50
vector< string > get_info(string)
get information from strings such as "5*GeV, 2*deg, 10*deg"
string ctgr
help category
Definition: usage.h:51
map< string, opts > args
Options map.
Definition: usage.h:68
vector< string > init_dvmesg(gemc_opts, G4VisManager *)
Initialization Routine for Visualization.
Definition: dmesg_init.cc:102
string args
string assigned to argument.
Definition: usage.h:47