BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibSvc/CalibDataSvc/include/CalibDataSvc/ICalibXmlSvc.h
Go to the documentation of this file.
1// $Header:
2// /bes/bes/BossCvs/Calibration/CalibSvc/CalibDataSvc/CalibDataSvc/ICalibXmlSvc.h,v 1.4
3// 2022/02/17 22:03:24 maqm Exp $
4
5#ifndef IXMLSvc_h
6#define IXMLSvc_h
7
8/** @class ICalibXmlSvc
9 Abstract interface to be satisfied by any XML conversion implementation.
10
11 Will parse a file, making its DOM rep. available
12
13 Maybe also provide layer over "raw" access to the DOM to insulate
14 converters from changes moving from one xml parser version (or even
15 parser) to another.
16 ...or do we just depend on things in calibUtil?
17
18*/
19#include "GaudiKernel/IInterface.h"
20// #include <xercesc/dom/DOM_Document.hpp>
21#include <xercesc/util/XercesDefs.hpp>
22XERCES_CPP_NAMESPACE_BEGIN
23class DOMDocument;
24XERCES_CPP_NAMESPACE_END
25
26// static const InterfaceID IID_ICalibXmlSvc("ICalibXmlSvc", 1, 0);
27
28// class ICalibXmlSvc : virtual public IInterface
29class GAUDI_API ICalibXmlSvc : virtual public IInterface {
30public:
31 // Re-implemented from IInterface
32 // static const InterfaceID& interfaceID() { return IID_ICalibXmlSvc; }
34 /**
35 * This method parses an xml file and produces the corresponding DOM
36 * document.
37 * @param fileName the name of the file to parse
38 * @return the document issued from the parsing
39 */
40 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* parse( const char* filename ) = 0;
41
42 // Do we also want a "reset" or "clearDocument" ? Can in any case
43 // do this internally when a new document is to be parsed so might not
44 // be necessary to have explicit public method.
45};
46
47#endif
virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parse(const char *filename)=0
DeclareInterfaceID(ICalibXmlSvc, 1, 0)