CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
GenericSrv.h
Go to the documentation of this file.
1
// $Header: /bes/bes/BossCvs/Calibration/calibUtil/calibUtil/GenericSrv.h,v 1.1.1.1 2005/10/17 06:12:26 maqm Exp $
2
3
#ifndef CALIBUTIL_GENERICSRV_H
4
#define CALIBUTIL_GENERICSRV_H
5
6
#include "
xmlBase/XmlParser.h
"
7
#include "
xmlBase/Dom.h
"
8
#include <xercesc/dom/DOMElement.hpp>
9
10
#include <string>
11
#include <iostream>
12
#include <vector>
13
14
namespace
calibUtil
{
15
16
class
InputSample;
17
18
class
GenericSrv
{
19
public
:
20
21
/// Constructor that fills in values of generic data from XML file
22
GenericSrv
(
const
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* docElt);
23
24
/// Constructor to be used when creating a new calibration data set
25
GenericSrv
(std::string inst, std::string timestamp,
26
std::string calType, InputSample* samp) :
27
m_instName(inst), m_timestamp(timestamp), m_calType(calType),
28
m_fmtVer(0), m_sample(samp) {}
29
30
/// Get instrument name
31
std::string
getInst
(){
32
return
m_instName;
33
}
34
35
/// Get timestamp
36
std::string
getTimestamp
(){
37
return
m_timestamp;
38
}
39
40
/// Get calibration type
41
std::string
getCalType
(){
42
return
m_calType;
43
}
44
45
/// Get format Version
46
std::string
getFmtVer
(){
47
return
m_fmtVer;
48
}
49
50
private
:
51
52
std::string m_instName;
53
std::string m_timestamp;
54
std::string m_calType;
55
std::string m_fmtVer;
56
57
// Corresponds to inputSample element in badStrips.dtd (except
58
// that the class doesn't actually exist yet.
59
InputSample *m_sample;
60
61
};
62
63
}
// end of namespace calibUtil
64
65
#endif
66
67
68
Dom.h
XmlParser.h
calibUtil::GenericSrv
Definition
GenericSrv.h:18
calibUtil::GenericSrv::getFmtVer
std::string getFmtVer()
Get format Version.
Definition
GenericSrv.h:46
calibUtil::GenericSrv::getInst
std::string getInst()
Get instrument name.
Definition
GenericSrv.h:31
calibUtil::GenericSrv::GenericSrv
GenericSrv(const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *docElt)
Constructor that fills in values of generic data from XML file.
calibUtil::GenericSrv::getCalType
std::string getCalType()
Get calibration type.
Definition
GenericSrv.h:41
calibUtil::GenericSrv::GenericSrv
GenericSrv(std::string inst, std::string timestamp, std::string calType, InputSample *samp)
Constructor to be used when creating a new calibration data set.
Definition
GenericSrv.h:25
calibUtil::GenericSrv::getTimestamp
std::string getTimestamp()
Get timestamp.
Definition
GenericSrv.h:36
calibUtil
Module implements methods for clients to get generic services.
Definition
ICalibMetaCnvSvc.h:21
6.6.5.h
Calibration
calibUtil
calibUtil-00-00-39
calibUtil
GenericSrv.h
Generated by
1.12.0