#include <DetDescCnv/IXmlParserSvc.h>
Inheritance diagram for IXmlParserSvc:
Public Types | |
| SUCCESS | |
| NO_INTERFACE | |
| VERSMISMATCH | |
| LAST_ERROR | |
| enum | Status |
Public Member Functions | |
| virtual IOVDOMDocument * | parse (const char *fileName)=0 |
| This method parses an xml file and produces the corresponding DOM document. | |
| virtual IOVDOMDocument * | parseString (std::string source)=0 |
| This method parses XML from a string and produces the corresponding DOM document. | |
| virtual void | clearCache ()=0 |
| This clears the cache of previously parsed xml files. | |
| virtual void | releaseDoc (IOVDOMDocument *doc)=0 |
| Method to remove the lock from a document in the cache or to delete the document generated from a string. | |
| virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface)=0 |
| virtual unsigned long | addRef ()=0 |
| virtual unsigned long | release ()=0 |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| Retrieve interface ID. | |
Public Attributes | |
| SUCCESS | |
| NO_INTERFACE | |
| VERSMISMATCH | |
| LAST_ERROR | |
Marco Clemencic
Definition at line 23 of file IXmlParserSvc.h.
| static const InterfaceID& IXmlParserSvc::interfaceID | ( | ) | [inline, static] |
Retrieve interface ID.
Reimplemented from IInterface.
Reimplemented in IXmlSvc.
Definition at line 28 of file IXmlParserSvc.h.
00028 { return IID_IXmlParserSvc; }
| virtual IOVDOMDocument* IXmlParserSvc::parse | ( | const char * | fileName | ) | [pure virtual] |
This method parses an xml file and produces the corresponding DOM document.
The actual document is kept in a cache and locked. The user must call IXmlParserSvc::releaseDoc() when he does not need anymore the document.
| fileName | the name of the file to parse |
| virtual IOVDOMDocument* IXmlParserSvc::parseString | ( | std::string | source | ) | [pure virtual] |
This method parses XML from a string and produces the corresponding DOM document.
Like for the DOMDocument generated from a file, this one has to be released with IXmlParserSvc::releaseDoc() too.
| source | the string to parse |
| virtual void IXmlParserSvc::clearCache | ( | ) | [pure virtual] |
This clears the cache of previously parsed xml files.
| virtual void IXmlParserSvc::releaseDoc | ( | IOVDOMDocument * | doc | ) | [pure virtual] |
Method to remove the lock from a document in the cache or to delete the document generated from a string.
1.4.7