GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
TPCModuleXML.h
1 #ifndef GEAR_TPCModuleXML_H
2 #define GEAR_TPCModuleXML_H 1
3 
4 
5 #include "gearxml/XMLHandler.h"
6 #include "gear/TPCModule.h"
7 
8 //#include <string>
9 //#include <map>
10 
11 namespace gear {
12 
13 
19  class TPCModuleXML {
20 
21  public:
22 
23  virtual ~TPCModuleXML(){}
26  virtual TiXmlElement toXML( const TPCModule* layout ) const ;
27 
28 
32  virtual TPCModule* fromXML( const TiXmlElement* moduleElement ,
33  const TiXmlElement* defaultModuleElement,
34  int tpcCoordinateType, int moduleID) const ;
35 
36  }; // class
37 } // namespace gear
38 
39 #endif /* ifndef GEAR_TPCModuleXML_H */
virtual TiXmlElement toXML(const TPCModule *layout) const
Creates an XML node for the given TPCModule.
Definition: TPCModuleXML.cc:19
The element is a container class.
Definition: tinyxml.h:827
virtual TPCModule * fromXML(const TiXmlElement *moduleElement, const TiXmlElement *defaultModuleElement, int tpcCoordinateType, int moduleID) const
Creates the appropriate TPCModule class from the given XML element (node)
Definition: TPCModuleXML.cc:73
A wrapper Class for PadRowLayout2D which converts between the actual pad layouts local coodinate syst...
Definition: TPCModule.h:41
Abstract XML handler for TPCModuleXML.
Definition: TPCModuleXML.h:19