CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OutletBase.h
Go to the documentation of this file.
1 #ifndef Utilities_OutletBase_h
2 #define Utilities_OutletBase_h
3 // -*- C++ -*-
4 //
5 // Package: Utilities
6 // Class : OutletBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Sep 22 12:39:16 EDT 2006
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 namespace edm {
28 template <class T>
29 class OutletBase
30 {
31 
32  protected:
33  OutletBase( ExtensionCord<T>& iCord) : cord_(iCord) {}
34  virtual ~OutletBase() { this->setGetter(0); }
35 
37  cord_.setGetter(iGetter);
38  }
39 
40 
41 
42  private:
43  OutletBase(const OutletBase&); // stop default
44 
45  const OutletBase& operator=(const OutletBase&); // stop default
46 
47  // ---------- member data --------------------------------
49 };
50 }
51 
52 #endif
ExtensionCord< T > & cord_
Definition: OutletBase.h:48
void setGetter(extensioncord::ECGetterBase< T > *iGetter)
Definition: OutletBase.h:36
virtual ~OutletBase()
Definition: OutletBase.h:34
const OutletBase & operator=(const OutletBase &)
OutletBase(ExtensionCord< T > &iCord)
Definition: OutletBase.h:33