00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_PI_CURRENT_IMPL_H
00014 #define TAO_PI_CURRENT_IMPL_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 #include "tao/AnyTypeCode/Any.h"
00030 #include "ace/Array_Base.h"
00031
00032
00033 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00034
00035
00036 class TAO_ORB_Core;
00037
00038 namespace TAO
00039 {
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 class TAO_PI_Export PICurrent_Impl
00051 {
00052 public:
00053
00054 PICurrent_Impl (void);
00055
00056
00057 ~PICurrent_Impl (void);
00058
00059
00060
00061 CORBA::Any *get_slot (PortableInterceptor::SlotId identifier
00062 ACE_ENV_ARG_DECL)
00063 ACE_THROW_SPEC ((CORBA::SystemException,
00064 PortableInterceptor::InvalidSlot));
00065
00066
00067 void set_slot (PortableInterceptor::SlotId identifier,
00068 const CORBA::Any & data
00069 ACE_ENV_ARG_DECL)
00070 ACE_THROW_SPEC ((CORBA::SystemException,
00071 PortableInterceptor::InvalidSlot));
00072
00073
00074 void take_lazy_copy (PICurrent_Impl *p);
00075
00076 private:
00077
00078
00079 void convert_from_lazy_to_real_copy ();
00080
00081
00082
00083
00084
00085
00086 void set_callback_for_impending_change (PICurrent_Impl *p);
00087
00088
00089 typedef ACE_Array_Base<CORBA::Any> Table;
00090
00091
00092
00093
00094
00095
00096
00097 Table & current_slot_table ();
00098
00099
00100
00101
00102 PICurrent_Impl (const PICurrent_Impl &);
00103 void operator= (const PICurrent_Impl &);
00104
00105
00106 private:
00107
00108 Table slot_table_;
00109
00110
00111
00112 PICurrent_Impl *lazy_copy_;
00113
00114
00115
00116
00117
00118
00119 PICurrent_Impl *impending_change_callback_;
00120 };
00121 }
00122
00123 TAO_END_VERSIONED_NAMESPACE_DECL
00124
00125 #if defined (__ACE_INLINE__)
00126 # include "tao/PI/PICurrent_Impl.inl"
00127 #endif
00128
00129 #endif
00130
00131 #include "ace/post.h"
00132
00133 #endif