Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Object_KeyC.h
blobf7654d0916d301447e3fd42237f645bb4b55f6ac
1 // -*- C++ -*-
2 /**
3 * Code generated by the The ACE ORB (TAO) IDL Compiler v2.5.6
4 * TAO and the TAO IDL Compiler have been developed by:
5 * Center for Distributed Object Computing
6 * Washington University
7 * St. Louis, MO
8 * USA
9 * and
10 * Distributed Object Computing Laboratory
11 * University of California at Irvine
12 * Irvine, CA
13 * USA
14 * and
15 * Institute for Software Integrated Systems
16 * Vanderbilt University
17 * Nashville, TN
18 * USA
19 * https://www.isis.vanderbilt.edu/
21 * Information about TAO is available at:
22 * https://www.dre.vanderbilt.edu/~schmidt/TAO.html
23 **/
25 // TAO_IDL - Generated from
26 // be\be_codegen.cpp:153
28 #ifndef _TAO_IDL_ORIG_OBJECT_KEYC_H_
29 #define _TAO_IDL_ORIG_OBJECT_KEYC_H_
31 #include /**/ "ace/pre.h"
34 #include "ace/config-all.h"
36 #if !defined (ACE_LACKS_PRAGMA_ONCE)
37 # pragma once
38 #endif /* ACE_LACKS_PRAGMA_ONCE */
40 #include /**/ "tao/TAO_Export.h"
41 #include "tao/ORB.h"
42 #include "tao/Environment.h"
43 #include "tao/Sequence_T.h"
44 #include "tao/Seq_Var_T.h"
45 #include "tao/Seq_Out_T.h"
47 #if defined(_MSC_VER)
48 #pragma warning(push)
49 #pragma warning(disable:4250)
50 #endif /* _MSC_VER */
52 // TAO_IDL - Generated from
53 // be\be_visitor_module/module_ch.cpp:48
55 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
57 namespace TAO
59 // TAO_IDL - Generated from
60 // be\be_visitor_sequence/sequence_ch.cpp:101
62 #if !defined (_TAO_OBJECTKEY_CH_)
63 #define _TAO_OBJECTKEY_CH_
65 class ObjectKey;
67 typedef
68 TAO_FixedSeq_Var_T<
69 ObjectKey
71 ObjectKey_var;
73 typedef
74 TAO_Seq_Out_T<
75 ObjectKey
77 ObjectKey_out;
79 class TAO_Export ObjectKey
80 : public
81 TAO::unbounded_value_sequence<
82 CORBA::Octet
85 public:
86 ObjectKey ();
87 ObjectKey (CORBA::ULong max);
88 ObjectKey (
89 CORBA::ULong max,
90 CORBA::ULong length,
91 CORBA::Octet* buffer,
92 CORBA::Boolean release = false
94 ObjectKey (const ObjectKey &) = default;
95 ObjectKey (ObjectKey &&) = default;
96 ObjectKey& operator= (const ObjectKey &) = default;
97 ObjectKey& operator= (ObjectKey &&) = default;
98 ~ObjectKey ();
100 typedef ObjectKey_var _var_type;
102 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
103 ObjectKey (
104 CORBA::ULong length,
105 const ACE_Message_Block* mb
107 : TAO::unbounded_value_sequence<CORBA::Octet> (length, mb) {}
108 #endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */
110 // Hand crafted.
112 static void encode_sequence_to_string (
113 char* & str,
114 TAO::unbounded_value_sequence<CORBA::Octet> const & seq);
115 static void decode_string_to_sequence (
116 TAO::unbounded_value_sequence<CORBA::Octet> &seq,
117 char const * str);
118 static CORBA::Boolean is_legal (unsigned char c);
120 /// A special method that gives no regard to how the ORB has
121 /// configured the resource factory. This will be used only
122 /// during Profile decoding and should be safe. This is a solution
123 /// for the bug report [Bug 1616]
124 static CORBA::Boolean demarshal_key (ObjectKey & key,
125 TAO_InputCDR & cdr);
128 #endif /* end #if !defined */
130 // TAO_IDL - Generated from
131 // be\be_visitor_module/module_ch.cpp:66
133 } // module TAO
135 // TAO_IDL - Generated from
136 // be\be_visitor_traits.cpp:61
138 // Traits specializations.
139 namespace TAO
143 // TAO_IDL - Generated from
144 // be\be_visitor_sequence/cdr_op_ch.cpp:71
146 #if !defined _TAO_CDR_OP_TAO_ObjectKey_H_
147 #define _TAO_CDR_OP_TAO_ObjectKey_H_
149 TAO_Export CORBA::Boolean operator<< (
150 TAO_OutputCDR &,
151 const TAO::ObjectKey &
153 TAO_Export CORBA::Boolean operator>> (
154 TAO_InputCDR &,
155 TAO::ObjectKey &
158 #endif /* _TAO_CDR_OP_TAO_ObjectKey_H_ */
160 // TAO_IDL - Generated from
161 // be\be_codegen.cpp:955
163 TAO_END_VERSIONED_NAMESPACE_DECL
165 #if defined(_MSC_VER)
166 #pragma warning(pop)
167 #endif /* _MSC_VER */
169 #include /**/ "ace/post.h"
171 #endif /* ifndef */