Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:31

0001 #ifndef FWCore_FWLite_FWLiteEnabler_h
0002 #define FWCore_FWLite_FWLiteEnabler_h
0003 /**\class FWLiteEnabler
0004  *
0005  * helper class to enable fwlite.
0006  * Using a free function enable() directly does not work in macros.
0007  *
0008  */
0009 class DummyClassToStopCompilerWarning;
0010 
0011 class FWLiteEnabler {
0012   friend class DummyClassToStopCompilerWarning;
0013 
0014 public:
0015   FWLiteEnabler(const FWLiteEnabler&) = delete;                   // stop default
0016   FWLiteEnabler const& operator=(FWLiteEnabler const&) = delete;  // stop default
0017   /// enable automatic library loading
0018   static void enable();
0019 
0020 private:
0021   static bool enabled_;
0022   FWLiteEnabler();
0023 };
0024 
0025 #endif