BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
GenericSrv.cxx
Go to the documentation of this file.
1//$ Header: $
2/// Module implements methods for clients to get generic services.
3
4#include "xmlBase/Dom.h"
5
6#include <string>
7#include <iostream>
8#include <vector>
9#include <cstdlib>
10
12
13namespace calibUtil {
14
15 using XERCES_CPP_NAMESPACE_QUALIFIER DOMElement;
16 /// Constructor that fills in values of generic data from XML file
17 GenericSrv::GenericSrv(const DOMElement* docElt) : m_sample(0) {
18
19 DOMElement* child = xmlBase::Dom::findFirstChildByName(docElt,"generic");
20 m_instName = xmlBase::Dom::getAttribute(child,"instrument");
21 m_timestamp = xmlBase::Dom::getAttribute(child,"timestamp");
22 m_calType = xmlBase::Dom::getAttribute(child,"calType");
23 m_fmtVer = xmlBase::Dom::getAttribute(child,"fmtVersion");
24
25 }
26
27}// end of namespace calibUtil
28
29
30
31
32
33
GenericSrv(const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *docElt)
Constructor that fills in values of generic data from XML file.
static std::string getAttribute(const DOMElement *elt, const char *attName)
Definition: Dom.cxx:222
static DOMElement * findFirstChildByName(const DOMElement *parent, const char *const name)
Definition: Dom.cxx:60
Module implements methods for clients to get generic services.