3 //=============================================================================
5 * @file LF_Event_Binder.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
9 //=============================================================================
11 #ifndef TAO_LF_EVENT_BINDER_H
12 #define TAO_LF_EVENT_BINDER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/LF_Event.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 class TAO_LF_Follower
;
27 * @brief Implement an auto_ptr-like class for the TAO_LF_Followers
28 * allocated via a TAO_Leader_Follower set.
30 * The Leader/Follower set is a factory for TAO_LF_Follower objects
32 class TAO_Export TAO_LF_Event_Binder
36 TAO_LF_Event_Binder (TAO_LF_Event
*event
, TAO_LF_Follower
*folloer
);
39 ~TAO_LF_Event_Binder ();
42 void operator= (const TAO_LF_Event_Binder
&);
43 TAO_LF_Event_Binder (const TAO_LF_Event_Binder
&);
46 /// Keep a reference to the leader follower
47 TAO_LF_Event
* const event_
;
48 TAO_LF_Follower
* const follower_
;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #if defined (__ACE_INLINE__)
54 # include "tao/LF_Event_Binder.inl"
55 #endif /* __ACE_INLINE__ */
57 #include /**/ "ace/post.h"
59 #endif /* TAO_LF_EVENT_BINDER_H */