00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_TARGET_SPECIFICATION_H
00016 #define TAO_TARGET_SPECIFICATION_H
00017
00018 #include "ace/pre.h"
00019
00020 #include "tao/TAO_Export.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #include "tao/Basic_Types.h"
00027
00028 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00029 # pragma once
00030 #endif
00031
00032 #if defined (HPUX) && defined (IOR)
00033
00034
00035 # undef IOR
00036 #endif
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040 namespace IOP
00041 {
00042 struct IOR;
00043 struct TaggedProfile;
00044 }
00045
00046 namespace TAO
00047 {
00048 class ObjectKey;
00049 }
00050
00051
00052
00053
00054
00055
00056
00057 class TAO_Export TAO_Target_Specification
00058 {
00059 public:
00060
00061
00062 TAO_Target_Specification (void);
00063 enum TAO_Target_Address
00064 {
00065
00066 Key_Addr = 0,
00067 Profile_Addr,
00068 Reference_Addr
00069 };
00070
00071
00072
00073
00074
00075 void target_specifier (const TAO::ObjectKey &key);
00076
00077
00078 void target_specifier (IOP::TaggedProfile &profile);
00079
00080
00081
00082
00083
00084
00085 void target_specifier (IOP::IOR &ior, CORBA::ULong prof_index);
00086
00087
00088
00089
00090
00091
00092 const TAO::ObjectKey* object_key (void);
00093
00094
00095
00096
00097
00098
00099 const IOP::TaggedProfile *profile (void);
00100
00101
00102
00103
00104
00105
00106
00107 CORBA::ULong iop_ior (IOP::IOR *&ior);
00108
00109
00110 TAO_Target_Address specifier (void);
00111
00112 private:
00113
00114 union
00115 {
00116 TAO::ObjectKey *object_key_;
00117 IOP::TaggedProfile *profile_;
00118 IOP::IOR *ior_;
00119 } u_;
00120
00121
00122 TAO_Target_Address specifier_;
00123
00124
00125 CORBA::ULong profile_index_;
00126 };
00127
00128 TAO_END_VERSIONED_NAMESPACE_DECL
00129
00130 #if defined (__ACE_INLINE__)
00131 #include "tao/target_specification.inl"
00132 #endif
00133
00134 #include "ace/post.h"
00135
00136 #endif