/export/rook1/users/build/gfcppsancout64/product/include/gfcpp/RegionEvent.hpp

Go to the documentation of this file.
00001 #ifndef _GEMFIRE_REGIONEVENT_HPP_
00002 #define _GEMFIRE_REGIONEVENT_HPP_
00003 /*=========================================================================
00004  * (c) Copyright 2002-2007, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  *=========================================================================
00007  */
00008 #include "gfcpp_globals.hpp"
00009 #include "gf_types.hpp"
00010 #include "Region.hpp"
00011 #include "CacheableKey.hpp"
00012 #include "UserData.hpp"
00013 
00017 namespace gemfire {
00018 
00022 class CPPCACHE_EXPORT RegionEvent
00023 {
00024   protected:
00025     const RegionPtr m_region;  
00026     const UserDataPtr m_callbackArgument; 
00027     const bool m_remoteOrigin; 
00029   public:
00030 
00032   RegionEvent();
00034   RegionEvent( const RegionPtr& region,
00035                const UserDataPtr& aCallbackArgument,
00036                const bool remoteOrigin );
00037 
00039   ~RegionEvent( );
00040 
00042   inline RegionPtr getRegion() const
00043   {
00044     return m_region;
00045   }
00046 
00052   inline UserDataPtr getCallbackArgument() const
00053   {
00054     return m_callbackArgument;
00055   }
00056 
00058   inline bool remoteOrigin() const
00059   {
00060     return m_remoteOrigin;
00061   }
00062 
00063 
00064   private:
00065 
00066   // never implemented.
00067   RegionEvent( const RegionEvent& other );
00068   void operator = ( const RegionEvent& other );
00069 
00070 
00071 };
00072 
00073 }
00074 
00075 
00076 #endif

GemFire C++ Cache API Documentation