00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_PI_CURRENT_H
00014 #define TAO_PI_CURRENT_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/PI/pi_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/orbconf.h"
00025
00026 #if TAO_HAS_INTERCEPTORS == 1
00027
00028 #include "tao/PI/PICurrentC.h"
00029
00030 #include "tao/LocalObject.h"
00031 #include "ace/Array_Base.h"
00032
00033 #if defined(_MSC_VER)
00034 # pragma warning(push)
00035 # pragma warning(disable:4250)
00036 #endif
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040
00041 class TAO_ORB_Core;
00042
00043 namespace TAO
00044 {
00045 class PICurrent_Impl;
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 class TAO_PI_Export PICurrent
00058 : public virtual PortableInterceptor::Current,
00059 public virtual TAO_Local_RefCounted_Object
00060 {
00061 public:
00062
00063 PICurrent (TAO_ORB_Core &orb_core);
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074 virtual CORBA::Any *get_slot (PortableInterceptor::SlotId id);
00075
00076
00077 virtual void set_slot (PortableInterceptor::SlotId identifier,
00078 const CORBA::Any & data);
00079
00080
00081 virtual CORBA::ORB_ptr _get_orb (void);
00082
00083
00084 PortableInterceptor::SlotId slot_count (void) const;
00085
00086
00087
00088 PICurrent_Impl * tsc (void);
00089
00090
00091 void check_validity (const PortableInterceptor::SlotId &identifier);
00092
00093
00094 void initialize (PortableInterceptor::SlotId sc);
00095
00096 protected:
00097
00098
00099
00100
00101
00102
00103 virtual ~PICurrent (void);
00104
00105 private:
00106
00107
00108
00109 PICurrent (const PICurrent &);
00110 void operator= (const PICurrent &);
00111
00112
00113 private:
00114
00115 TAO_ORB_Core &orb_core_;
00116
00117
00118
00119
00120 size_t tss_slot_;
00121
00122
00123
00124 PortableInterceptor::SlotId slot_count_;
00125 };
00126 }
00127
00128 TAO_END_VERSIONED_NAMESPACE_DECL
00129
00130 #if defined (__ACE_INLINE__)
00131 # include "tao/PI/PICurrent.inl"
00132 #endif
00133
00134 #if defined(_MSC_VER)
00135 #pragma warning(pop)
00136 #endif
00137
00138 #endif
00139
00140 #include "ace/post.h"
00141
00142 #endif