CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/Fireworks/Core/interface/FWSimpleProxyHelper.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWSimpleProxyHelper_h
00002 #define Fireworks_Core_FWSimpleProxyHelper_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWSimpleProxyHelper
00007 //
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Tue Dec  2 15:13:17 EST 2008
00019 // $Id: FWSimpleProxyHelper.h,v 1.3 2010/08/18 10:30:10 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 #include <typeinfo>
00024 #include <string>
00025 
00026 // user include files
00027 
00028 // forward declarations
00029 class FWEventItem;
00030 
00031 class FWSimpleProxyHelper {
00032 
00033 public:
00034    FWSimpleProxyHelper(const std::type_info& );
00035    //virtual ~FWSimpleProxyHelper();
00036 
00037    // ---------- const member functions ---------------------
00038    const void* offsetObject(const void* iObj) const {
00039       return static_cast<const char*> (iObj)+m_objectOffset;
00040    }
00041    
00042    // ---------- static member functions --------------------
00043 
00044    // ---------- member functions ---------------------------
00045    void itemChanged(const FWEventItem*);
00046 private:
00047    //FWSimpleProxyHelper(const FWSimpleProxyHelper&); // stop default
00048 
00049    //const FWSimpleProxyHelper& operator=(const FWSimpleProxyHelper&); // stop default
00050 
00051    // ---------- member data --------------------------------
00052    const std::type_info* m_itemType;
00053    unsigned int m_objectOffset;
00054 
00055 };
00056 
00057 
00058 #endif