GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
TPCParametersXML.h
1 #ifndef GEAR_TPCParametersXML_H
2 #define GEAR_TPCParametersXML_H 1
3 
4 
5 #include "gearxml/XMLHandler.h"
6 #include "gearxml/TPCModuleXML.h"
7 #include "gear/TPCParameters.h"
8 
9 //#include <string>
10 //#include <map>
11 
12 namespace gear {
13 
14 
21  class TPCParametersXML : public XMLHandler {
22 
23  public:
24 
27  virtual TiXmlElement toXML( const GearParameters & modularTPC ) const ;
28 
29 
33  virtual GearParameters* fromXML( const TiXmlElement* xmlElement, GearMgr* gearMgr = 0) const ;
34 
35  private:
38  TPCModuleXML _tpcModuleXML{};
39 
40  }; // class
41 } // namespace gear
42 
43 #endif /* ifndef GEAR_TPCParametersXML_H */
Interface for XML handlers of GEAR classes.
Definition: XMLHandler.h:17
Abstract XML handler for TPCParameters.
virtual GearParameters * fromXML(const TiXmlElement *xmlElement, GearMgr *gearMgr=0) const
Creates the appropriate TPCParameters class from the given XML element (node)
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 &modularTPC) const
Creates an XML node for the given TPCParameters.
Abstract XML handler for TPCModuleXML.
Definition: TPCModuleXML.h:19