Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:33:05

0001 #ifndef FWCore_FWLite_AutoLibraryLoader_h
0002 #define FWCore_FWLite_AutoLibraryLoader_h
0003 /**\class AutoLibraryLoader
0004  *
0005  * ROOT helper class which can automatically load the 
0006  * proper shared library when ROOT needs a new class dictionary
0007  *
0008  * \author Chris Jones, Cornell
0009  *
0010  *
0011  */
0012 class DummyClassToStopCompilerWarning;
0013 
0014 class AutoLibraryLoader {
0015   friend class DummyClassToStopCompilerWarning;
0016 
0017 public:
0018   /// enable automatic library loading
0019   static void enable();
0020 
0021   /// load all known libraries holding dictionaries
0022   static void loadAll();
0023 
0024   AutoLibraryLoader(const AutoLibraryLoader&) = delete;                   // stop default
0025   const AutoLibraryLoader& operator=(const AutoLibraryLoader&) = delete;  // stop default
0026 
0027 private:
0028   static bool enabled_;
0029   AutoLibraryLoader();
0030 };
0031 
0032 #endif