GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
GearXML.h
1 #ifndef GEAR_GearXML_H
2 #define GEAR_GearXML_H 1
3 
4 
5 #include <string>
6 #include "gear/GearMgr.h"
7 
8 
9 namespace gear {
10 
11  class GearMgrImpl ;
12 
18  class GearXML {
19 
20  public:
21 
22  GearXML(const GearXML&) = delete ;
23  GearXML& operator=(const GearXML&) = delete ;
24 
26  GearXML( const std::string& fileName ) ;
27 
28  ~GearXML() ;
29 
35 
36 
39  static void createXMLFile( GearMgr* mgr, const std::string& fileName ) ;
40 
41 
42  protected:
43 
44  std::string _fileName{} ;
45  GearMgrImpl* _gearMgr = nullptr ;
46 
47  }; // class
48 
49 } // namespace gear
50 
51 #endif /* ifndef GEAR_GearXML_H */
GearMgr * createGearMgr()
Creates an instance of GearMgr from the data given in the XML file.
Definition: GearXML.cc:473
Manager class that returns the Gear classes for the relevant subdetectors.
Definition: GearMgrImpl.h:23
Implementation of GEAR using XML.
Definition: GearXML.h:18
static void createXMLFile(GearMgr *mgr, const std::string &fileName)
Write an XML file to disk from the given GearMgr object.
Definition: GearXML.cc:50
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...
Definition: GearMgr.h:36