GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
GearParametersXML.h
1 #ifndef GEAR_GearParametersXML_H
2 #define GEAR_GearParametersXML_H 1
3 
4 
5 #include "gearxml/XMLHandler.h"
6 
7 #include "gearimpl/GearParametersImpl.h"
8 
9 #include <string>
10 
11 
12 namespace gear {
13 
14 
15  class TiXmlNode ;
16 
17 
23  class GearParametersXML : public XMLHandler {
24 
25  public:
26 
29  virtual TiXmlElement toXML( const GearParameters& parameters ) const ;
30 
31 
35  virtual GearParameters* fromXML( const TiXmlElement* xmlElement, GearMgr* gearMgr=0) const ;
36 
37 
40  static void setParametersFromXML( const TiXmlElement* xmlElement, GearParametersImpl* gearParams );
41 
42 
45  static void getXMLForParameters( TiXmlElement* xmlElement, const GearParameters* gearParams );
46 
47 
48  protected:
49 
50  // std::string getAttribute(const TiXmlNode* node , const std::string& name ) const ;
51 
52 
53 
54  }; // class
55 
56 } // namespace gear
57 
58 #endif /* ifndef GEAR_GearParametersXML_H */
Implementation of GearParameters - a set off parameters that can be used to describe the geometrical ...
Interface for XML handlers of GEAR classes.
Definition: XMLHandler.h:17
XML handler for GearParameters.
static void setParametersFromXML(const TiXmlElement *xmlElement, GearParametersImpl *gearParams)
Static helper function that can be used by other subclass handlers to read parameters.
Abstract interface for a set of parameters that can be used to describe the geometrical properties of...
static void getXMLForParameters(TiXmlElement *xmlElement, const GearParameters *gearParams)
Static helper function that can be used by other subclass handlers to create XML for parameters...
virtual GearParameters * fromXML(const TiXmlElement *xmlElement, GearMgr *gearMgr=0) const
Creates the appropriate GearParameters subclass from the given XML element (node) ...
The element is a container class.
Definition: tinyxml.h:827
virtual TiXmlElement toXML(const GearParameters &parameters) const
Creates an XML node for the given parameters.
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...
Definition: GearMgr.h:36