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