Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / LF_Follower_Auto_Adder.h
blob4de8316be1535b453ee5f117deeb6069a3e8ccc7
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file LF_Follower_Auto_Adder.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 */
9 //=============================================================================
11 #ifndef TAO_LF_FOLLOWER_AUTO_ADDER_H
12 #define TAO_LF_FOLLOWER_AUTO_ADDER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/LF_Follower.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Leader_Follower.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @brief Implement an auto_adder-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_Follower_Auto_Adder
34 public:
35 /// Constructor
36 TAO_LF_Follower_Auto_Adder (TAO_Leader_Follower &, TAO_LF_Follower *follower);
38 /// Destructor
39 ~TAO_LF_Follower_Auto_Adder ();
41 private:
42 /// Keep a reference to the leader follower
43 TAO_Leader_Follower &leader_follower_;
45 /// The follower
46 TAO_LF_Follower *follower_;
49 TAO_END_VERSIONED_NAMESPACE_DECL
51 #if defined (__ACE_INLINE__)
52 # include "tao/LF_Follower_Auto_Adder.inl"
53 #endif /* __ACE_INLINE__ */
55 #include /**/ "ace/post.h"
57 #endif /* TAO_LF_FOLLOWER_AUTO_ADDER_H */