Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:03

0001 #ifndef Fireworks_Core_FWSimpleProxyHelper_h
0002 #define Fireworks_Core_FWSimpleProxyHelper_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWSimpleProxyHelper
0007 //
0008 /**\class FWSimpleProxyHelper FWSimpleProxyHelper.h Fireworks/Core/interface/FWSimpleProxyHelper.h
0009 
0010    Description: Implements some common functionality needed by all Simple ProxyBuilders
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Tue Dec  2 15:13:17 EST 2008
0019 //
0020 
0021 // system include files
0022 #include <typeinfo>
0023 #include <string>
0024 
0025 // user include files
0026 
0027 // forward declarations
0028 class FWEventItem;
0029 
0030 class FWSimpleProxyHelper {
0031 public:
0032   FWSimpleProxyHelper(const std::type_info&);
0033   //virtual ~FWSimpleProxyHelper();
0034 
0035   // ---------- const member functions ---------------------
0036   const void* offsetObject(const void* iObj) const { return static_cast<const char*>(iObj) + m_objectOffset; }
0037 
0038   // ---------- static member functions --------------------
0039 
0040   // ---------- member functions ---------------------------
0041   void itemChanged(const FWEventItem*);
0042 
0043 private:
0044   //FWSimpleProxyHelper(const FWSimpleProxyHelper&); // stop default
0045 
0046   //const FWSimpleProxyHelper& operator=(const FWSimpleProxyHelper&); // stop default
0047 
0048   // ---------- member data --------------------------------
0049   const std::type_info* m_itemType;
0050   unsigned int m_objectOffset;
0051 };
0052 
0053 #endif