Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / SmartProxies / Smart_Proxies.h
blobb65fd22fc8c2dfe2c4aa8974c190ee2d7491a0ab
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Smart_Proxies.h
7 * This file contains a base class for the generated smart proxy classes
8 * It's purpose is to hold the pointer to the real proxy
10 * @author Brian Wallis <brian.wallis@ot.com.au>
12 //=============================================================================
14 #ifndef TAO_SMARTPROXIES_H
15 #define TAO_SMARTPROXIES_H
16 #include /**/ "ace/pre.h"
18 #include "tao/SmartProxies/smartproxies_export.h"
19 #include "tao/Object.h"
20 #include "tao/TAO_Singleton.h"
21 #include "tao/LocalObject.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # pragma once
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 /**
30 * @class TAO_Smart_Proxy_Base
32 * @brief A base class for all TAO_IDL generated smart proxy base classes.
34 * Contains the _var pointer to the real proxy.
36 class TAO_SmartProxies_Export TAO_Smart_Proxy_Base
37 : public ::CORBA::LocalObject
39 public:
40 /// Destructor
41 virtual ~TAO_Smart_Proxy_Base ();
43 protected:
44 /// Constructor.
45 TAO_Smart_Proxy_Base ();
47 /// Constructor.
48 TAO_Smart_Proxy_Base (CORBA::Object_ptr proxy);
50 /// The proxy to which remote/collocated calls are made.
51 CORBA::Object_var base_proxy_;
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #if defined (__ACE_INLINE__)
57 #include "tao/SmartProxies/Smart_Proxies.inl"
58 #endif /* defined INLINE */
60 #include /**/ "ace/post.h"
61 #endif /* TAO_SMARTPROXIES_H */