LF_Event_Binder.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file LF_Event_Binder.h
00006  *
00007  *  $Id: LF_Event_Binder.h 76687 2007-01-29 19:18:13Z johnnyw $
00008  *
00009  *  @author Carlos O'Ryan <coryan@uci.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_LF_EVENT_BINDER_H
00014 #define TAO_LF_EVENT_BINDER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/LF_Event.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 class TAO_LF_Follower;
00027 
00028 /**
00029  * @brief Implement an auto_ptr-like class for the TAO_LF_Followers
00030  * allocated via a TAO_Leader_Follower set.
00031  *
00032  * The Leader/Follower set is a factory for TAO_LF_Follower objects
00033  */
00034 class TAO_Export TAO_LF_Event_Binder
00035 {
00036 public:
00037   /// Constructor
00038   TAO_LF_Event_Binder (TAO_LF_Event *event, TAO_LF_Follower *folloer);
00039 
00040   /// Destructor
00041   ~TAO_LF_Event_Binder (void);
00042 
00043 private:
00044   /// Keep a reference to the leader follower
00045   TAO_LF_Event * const event_;
00046 };
00047 
00048 TAO_END_VERSIONED_NAMESPACE_DECL
00049 
00050 #if defined (__ACE_INLINE__)
00051 # include "tao/LF_Event_Binder.inl"
00052 #endif /* __ACE_INLINE__ */
00053 
00054 #include /**/ "ace/post.h"
00055 
00056 #endif  /* TAO_LF_EVENT_BINDER_H */

Generated on Tue Feb 2 17:37:52 2010 for TAO by  doxygen 1.4.7