BOSS 7.0.8
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
14namespace 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
std::string getFmtVer()
Get format Version.
Definition: GenericSrv.h:46
std::string getInst()
Get instrument name.
Definition: GenericSrv.h:31
GenericSrv(const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *docElt)
Constructor that fills in values of generic data from XML file.
std::string getCalType()
Get calibration type.
Definition: GenericSrv.h:41
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
std::string getTimestamp()
Get timestamp.
Definition: GenericSrv.h:36
Module implements methods for clients to get generic services.