GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
CalorimeterParametersXML.h
1 #ifndef GEAR_CalorimeterParametersXML_H
2 #define GEAR_CalorimeterParametersXML_H 1
3 
4 
5 #include "gearxml/XMLHandler.h"
6 
7 #include <string>
8 
9 
10 namespace gear {
11 
12 
13  class TiXmlNode ;
14 
15 
22 
23  public:
24 
28  virtual TiXmlElement toXML( const GearParameters & parameters ) const ;
29 
30 
34  virtual GearParameters* fromXML( const TiXmlElement* xmlElement, GearMgr* gearMgr=0) const ;
35 
36 
37  protected:
38 
39  // std::string getAttribute(const TiXmlNode* node , const std::string& name ) const ;
40 
41  private:
42 
46  bool isEqual( const double valueOne, const double valueTwo ) const ;
47 
48  }; // class
49 
50 } // namespace gear
51 
52 #endif /* ifndef GEAR_CalorimeterParametersXML_H */
Interface for XML handlers of GEAR classes.
Definition: XMLHandler.h:17
XML handler for CalorimeterParameters.
Abstract interface for a set of parameters that can be used to describe the geometrical properties of...
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.
virtual GearParameters * fromXML(const TiXmlElement *xmlElement, GearMgr *gearMgr=0) const
Creates the appropriate GearParameters subclass from the given XML element (node) ...
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...
Definition: GearMgr.h:36