#include <DetDescCnv/IXmlSvc.h>
Inheritance diagram for IXmlSvc:
Public Types | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
enum | Status |
Public Member Functions | |
virtual bool | allowGenericCnv ()=0 |
Tells whether generic conversion of user defined detector elements should be used in case the corresponding user defined converter is not available. | |
virtual double | eval (const char *expr, bool check=true)=0 |
Evaluates a numerical expresion. | |
virtual double | eval (const std::string &expr, bool check=true)=0 |
Evaluates a numerical expresion. | |
virtual bool | addParameter (const std::string &name, const std::string &value)=0 |
Adds a parameter in the list of known parameters. | |
virtual bool | addParameter (const char *name, const char *value)=0 |
Adds a parameter in the list of known parameters. | |
virtual bool | addParameter (const char *name, double value)=0 |
Adds a parameter in the list of known parameters. | |
virtual bool | removeParameter (const std::string &name)=0 |
Removes a parameter from the list of known parameters. | |
virtual bool | removeParameter (const char *name)=0 |
Removes a parameter from the list of known parameters. | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface)=0 |
virtual unsigned long | addRef ()=0 |
virtual unsigned long | release ()=0 |
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. | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Retrieve interface ID. | |
Public Attributes | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR |
This includes among others the interface to the expression evaluation, the parameter handling and the xml parsing
Pere Mato
Sebastien Ponce
Definition at line 26 of file IXmlSvc.h.
static const InterfaceID& IXmlSvc::interfaceID | ( | ) | [inline, static] |
Retrieve interface ID.
Reimplemented from IInterface.
Definition at line 32 of file IXmlSvc.h.
00032 { return IID_IXmlSvc; }
virtual bool IXmlSvc::allowGenericCnv | ( | ) | [pure virtual] |
Tells whether generic conversion of user defined detector elements should be used in case the corresponding user defined converter is not available.
virtual double IXmlSvc::eval | ( | const char * | expr, | |
bool | check = true | |||
) | [pure virtual] |
Evaluates a numerical expresion.
expr | expresion to evaluate. It may include units and parameters | |
check | boolean to control if the value needs to be check for being a dimentioned magnitude (with units) |
virtual double IXmlSvc::eval | ( | const std::string & | expr, | |
bool | check = true | |||
) | [pure virtual] |
Evaluates a numerical expresion.
expr | expresion to evaluate. It may include units and parameters | |
check | boolean to control if the value needs to be check for being a dimentioned magnitude (with units) |
virtual bool IXmlSvc::addParameter | ( | const std::string & | name, | |
const std::string & | value | |||
) | [pure virtual] |
Adds a parameter in the list of known parameters.
The value can also be an expression with units and other parameters.
name | parameter name | |
value | string which defines the value of the parameter. |
virtual bool IXmlSvc::addParameter | ( | const char * | name, | |
const char * | value | |||
) | [pure virtual] |
Adds a parameter in the list of known parameters.
The value can also be an expression with units and other parameters.
name | parameter name | |
value | string which defines the value of the parameter. |
virtual bool IXmlSvc::addParameter | ( | const char * | name, | |
double | value | |||
) | [pure virtual] |
Adds a parameter in the list of known parameters.
The value can also be an expression with units and other parameters.
name | parameter name | |
value | string which defines the value of the parameter. |
virtual bool IXmlSvc::removeParameter | ( | const std::string & | name | ) | [pure virtual] |
Removes a parameter from the list of known parameters.
name | parameter name |
virtual bool IXmlSvc::removeParameter | ( | const char * | name | ) | [pure virtual] |
Removes a parameter from the list of known parameters.
name | parameter name |
virtual IOVDOMDocument* IXmlParserSvc::parse | ( | const char * | fileName | ) | [pure virtual, inherited] |
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, inherited] |
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, inherited] |
This clears the cache of previously parsed xml files.
virtual void IXmlParserSvc::releaseDoc | ( | IOVDOMDocument * | doc | ) | [pure virtual, inherited] |
Method to remove the lock from a document in the cache or to delete the document generated from a string.