Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef _TAO_IDL_ORIG_OBJECT_KEYC_H_
00032 #define _TAO_IDL_ORIG_OBJECT_KEYC_H_
00033
00034 #include "ace/pre.h"
00035
00036
00037 #include "ace/config-all.h"
00038
00039 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00040 # pragma once
00041 #endif
00042
00043 #include "tao/TAO_Export.h"
00044 #include "tao/ORB.h"
00045 #include "tao/Environment.h"
00046 #include "tao/Sequence_T.h"
00047 #include "tao/Seq_Var_T.h"
00048 #include "tao/Seq_Out_T.h"
00049
00050 #if defined (TAO_EXPORT_MACRO)
00051 #undef TAO_EXPORT_MACRO
00052 #endif
00053 #define TAO_EXPORT_MACRO TAO_Export
00054
00055 #if defined(_MSC_VER)
00056 #pragma warning(push)
00057 #pragma warning(disable:4250)
00058 #endif
00059
00060
00061
00062
00063 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00064
00065 namespace TAO
00066 {
00067
00068
00069
00070
00071 #if !defined (_TAO_OBJECTKEY_CH_)
00072 #define _TAO_OBJECTKEY_CH_
00073
00074 class ObjectKey;
00075
00076 typedef
00077 TAO_FixedSeq_Var_T<
00078 ObjectKey
00079 >
00080 ObjectKey_var;
00081
00082 typedef
00083 TAO_Seq_Out_T<
00084 ObjectKey
00085 >
00086 ObjectKey_out;
00087
00088 class TAO_Export ObjectKey
00089 : public
00090 TAO::unbounded_value_sequence<
00091 CORBA::Octet
00092 >
00093 {
00094 public:
00095 ObjectKey (void);
00096 ObjectKey (CORBA::ULong max);
00097 ObjectKey (
00098 CORBA::ULong max,
00099 CORBA::ULong length,
00100 CORBA::Octet* buffer,
00101 CORBA::Boolean release = false
00102 );
00103 ObjectKey (const ObjectKey &);
00104 ~ObjectKey (void);
00105
00106 typedef ObjectKey_var _var_type;
00107
00108 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
00109 ObjectKey (
00110 CORBA::ULong length,
00111 const ACE_Message_Block* mb
00112 )
00113 : TAO::unbounded_value_sequence<CORBA::Octet> (length, mb) {}
00114 #endif
00115
00116
00117
00118 static void encode_sequence_to_string (
00119 char* & str,
00120 TAO::unbounded_value_sequence<CORBA::Octet> const & seq
00121 );
00122 static void decode_string_to_sequence (
00123 TAO::unbounded_value_sequence<CORBA::Octet> &seq,
00124 char const * str
00125 );
00126 static CORBA::Boolean is_legal (unsigned char c);
00127
00128
00129
00130
00131
00132 static CORBA::Boolean demarshal_key (ObjectKey & key,
00133 TAO_InputCDR & cdr);
00134 };
00135
00136 #endif
00137
00138
00139
00140
00141 }
00142
00143
00144
00145
00146
00147 namespace TAO
00148 {
00149 }
00150
00151
00152
00153
00154 #if !defined _TAO_CDR_OP_TAO_ObjectKey_H_
00155 #define _TAO_CDR_OP_TAO_ObjectKey_H_
00156
00157 TAO_Export CORBA::Boolean operator<< (
00158 TAO_OutputCDR &,
00159 const TAO::ObjectKey &
00160 );
00161 TAO_Export CORBA::Boolean operator>> (
00162 TAO_InputCDR &,
00163 TAO::ObjectKey &
00164 );
00165
00166 #endif
00167
00168
00169
00170
00171 TAO_END_VERSIONED_NAMESPACE_DECL
00172
00173 #if defined(_MSC_VER)
00174 #pragma warning(pop)
00175 #endif
00176
00177 #include "ace/post.h"
00178
00179 #endif
00180
00181