GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
ConstantBFieldXML.h
1 #ifndef GEAR_ConstantBFieldXML_H
2 #define GEAR_ConstantBFieldXML_H 1
3 
4 
5 #include "gearxml/XMLHandler.h"
6 #include "gearimpl/ConstantBField.h"
7 
8 #include <string>
9 
10 
11 namespace gear {
12 
13 
14  class TiXmlNode ;
15 
16 
22  class ConstantBFieldXML : public XMLHandler {
23 
24  public:
25 
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  }; // class
42 
43 } // namespace gear
44 
45 #endif /* ifndef GEAR_ConstantBFieldXML_H */
virtual GearParameters * fromXML(const TiXmlElement *xmlElement, GearMgr *gearMgr=0) const
Creates the appropriate GearParameters subclass from the given XML element (node) ...
XML handler for ConstantBField.
Interface for XML handlers of GEAR classes.
Definition: XMLHandler.h:17
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
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...
Definition: GearMgr.h:36
virtual TiXmlElement toXML(const GearParameters &parameters) const
Creates an XML node for the given parameters.