Diana Software
QGDUtils.cc
Go to the documentation of this file.
1 #include "QGDUtils.hh"
2 
4 {
5  std::string str;
6  switch(id) {
8  str = "Next Event";
9  break;
11  str = "Previous Event";
12  break;
14  str = "Jump to Event";
15  break;
17  str = "Quit";
18  break;
20  str = "ReRun";
21  break;
23  str = "List Modules";
24  break;
26  str = "List Module Parameters";
27  break;
29  str = "Change Module Parameter";
30  break;
32  str = "Send Data";
33  break;
35  str = "None";
36  break;
38  default:
39  str = "Unknown";
40  break;
41  }
42  return str;
43 }
44 
45 
46 
48 {
49  QVdt vdt(param.fValue);
50  vdt.SetName(param.fName);
51  return vdt;
52 }
53 
55 {
56  QGDParameter param;
57  param.fValue = vdt.GetString();
58  param.fType = (QGDParameter::ParType) vdt.GetType();
59  return param;
60 }
std::string fName
Definition: QGDInclude.hh:19
ParType fType
Definition: QGDInclude.hh:21
std::string fValue
Definition: QGDInclude.hh:20
Variable Data Type.
Definition: QVdt.hh:26
const std::string & GetString() const
Definition: QVdt.cc:225
QVdt_type GetType() const
Definition: QVdt.hh:96
void SetName(const std::string &name)
Definition: QVdt.hh:67
QVdt ParameterToQVdt(QGDParameter param)
Definition: QGDUtils.cc:47
QGDParameter QVdtToParameter(const QVdt &vdt)
Definition: QGDUtils.cc:54
std::string IdToString(QGDCommand::Id id)
Definition: QGDUtils.cc:3