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 // $Id: OutletBase.h,v 1.1 2006/09/22 18:42:58 chrjones Exp $
20 //
21 
22 // system include files
23 
24 // user include files
26 
27 // forward declarations
28 namespace edm {
29 template <class T>
30 class OutletBase
31 {
32 
33  protected:
34  OutletBase( ExtensionCord<T>& iCord) : cord_(iCord) {}
35  virtual ~OutletBase() { this->setGetter(0); }
36 
38  cord_.setGetter(iGetter);
39  }
40 
41 
42 
43  private:
44  OutletBase(const OutletBase&); // stop default
45 
46  const OutletBase& operator=(const OutletBase&); // stop default
47 
48  // ---------- member data --------------------------------
50 };
51 }
52 
53 #endif
ExtensionCord< T > & cord_
Definition: OutletBase.h:49
void setGetter(extensioncord::ECGetterBase< T > *iGetter)
Definition: OutletBase.h:37
virtual ~OutletBase()
Definition: OutletBase.h:35
const OutletBase & operator=(const OutletBase &)
OutletBase(ExtensionCord< T > &iCord)
Definition: OutletBase.h:34