summaryrefslogtreecommitdiff
path: root/TAO/tao/Object_KeyC.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Object_KeyC.h')
-rw-r--r--TAO/tao/Object_KeyC.h180
1 files changed, 73 insertions, 107 deletions
diff --git a/TAO/tao/Object_KeyC.h b/TAO/tao/Object_KeyC.h
index 3344f315aaf..f5fc94ae33d 100644
--- a/TAO/tao/Object_KeyC.h
+++ b/TAO/tao/Object_KeyC.h
@@ -1,5 +1,4 @@
-// -*- c++ -*-
-// $Id$
+// -*- C++ -*-
//
// $Id$
@@ -16,12 +15,18 @@
// Irvine, CA
// USA
// http://doc.ece.uci.edu/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:151
+// be/be_codegen.cpp:151
#ifndef _TAO_IDL_ORIG_OBJECT_KEYC_H_
#define _TAO_IDL_ORIG_OBJECT_KEYC_H_
@@ -34,7 +39,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Sequence.h"
+#include "tao/TAO_Export.h"
+#include "tao/Seq_Var_T.h"
+#include "tao/Seq_Out_T.h"
+#include "tao/Sequence_T.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
@@ -59,33 +67,37 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-namespace TAO
-{
+// TAO_IDL - Generated from
+// be/be_visitor_module/module_ch.cpp:48
-#if !defined (_TAO_OBJECTKEY_CH_)
-#define _TAO_OBJECTKEY_CH_
+TAO_NAMESPACE TAO
+{
// TAO_IDL - Generated from
- // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371
+ // be/be_visitor_sequence/sequence_ch.cpp:75
class ObjectKey;
- class ObjectKey_var;
-
- // *************************************************************
- // TAO::ObjectKey
- // *************************************************************
-
- class TAO_Export ObjectKey : public
-
- // TAO_IDL - Generated from
- // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_Sequence<CORBA::Octet>
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_Sequence<CORBA::Octet>
-
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ typedef
+ TAO_FixedSeq_Var_T<
+ ObjectKey,
+ CORBA::Octet
+ >
+ ObjectKey_var;
+
+ typedef
+ TAO_Seq_Out_T<
+ ObjectKey,
+ ObjectKey_var,
+ CORBA::Octet
+ >
+ ObjectKey_out;
+
+ class TAO_Export ObjectKey
+ : public
+ TAO_Unbounded_Sequence<
+ CORBA::Octet
+ >
{
public:
ObjectKey (void);
@@ -93,107 +105,61 @@ namespace TAO
ObjectKey (
CORBA::ULong max,
CORBA::ULong length,
- CORBA::Octet *buffer,
+ CORBA::Octet* buffer,
CORBA::Boolean release = 0
);
ObjectKey (const ObjectKey &);
- ObjectKey& operator= (const ObjectKey &);
-
- static void encode_sequence_to_string (char * &str,
- const TAO_Unbounded_Sequence<CORBA::Octet> &seq);
- static void decode_string_to_sequence (TAO_Unbounded_Sequence<CORBA::Octet> &seq,
- const char *str);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_TAO_OBJECTKEY___VAR_CH_)
-#define _TAO_OBJECTKEY___VAR_CH_
-
- // TAO_IDL - Generated from
- // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:549
-
- // *************************************************************
- // class TAO::ObjectKey_var
- // *************************************************************
-
- class TAO_Export ObjectKey_var
- {
- public:
- ObjectKey_var (void);
- ObjectKey_var (ObjectKey *);
- ObjectKey_var (const ObjectKey_var &);
-
- // Fixed-size base types only.
- ObjectKey_var (const ObjectKey &);
-
- ~ObjectKey_var (void);
-
- ObjectKey_var &operator= (ObjectKey *);
- ObjectKey_var &operator= (const ObjectKey_var &);
+ ~ObjectKey (void);
- // Fixed-size base types only.
- ObjectKey_var &operator= (const ObjectKey &);
+ static void _tao_any_destructor (void *);
- ObjectKey *operator-> (void);
- const ObjectKey *operator-> (void) const;
+ typedef ObjectKey_var _var_type;
- operator const ObjectKey &() const;
- operator ObjectKey &();
- operator ObjectKey &() const;
- CORBA::Octet & operator[] (CORBA::ULong index);
- const CORBA::Octet & operator[] (CORBA::ULong index) const;
-
- // in, inout, out, _retn
- const ObjectKey &in (void) const;
- ObjectKey &inout (void);
- ObjectKey *&out (void);
- ObjectKey *_retn (void);
- ObjectKey *ptr (void) const;
+#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
+ ObjectKey (
+ CORBA::ULong length,
+ const ACE_Message_Block* mb
+ )
+ : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {}
+#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */
+
+ static void encode_sequence_to_string (
+ char * &str,
+ const TAO_Unbounded_Sequence<CORBA::Octet> &seq
+ );
+ static void decode_string_to_sequence (
+ TAO_Unbounded_Sequence<CORBA::Octet> &seq,
+ const char *str
+ );
- private:
- ObjectKey *ptr_;
};
-#endif /* end #if !defined */
-
-#if !defined (_TAO_OBJECTKEY___OUT_CH_)
-#define _TAO_OBJECTKEY___OUT_CH_
-
// TAO_IDL - Generated from
- // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:753
+ // be/be_visitor_typecode/typecode_decl.cpp:44
- class TAO_Export ObjectKey_out
- {
- public:
- ObjectKey_out (ObjectKey *&);
- ObjectKey_out (ObjectKey_var &);
- ObjectKey_out (const ObjectKey_out &);
- ObjectKey_out &operator= (const ObjectKey_out &);
- ObjectKey_out &operator= (ObjectKey *);
- operator ObjectKey *&();
- ObjectKey *&ptr (void);
- ObjectKey *operator-> (void);
- CORBA::Octet & operator[] (CORBA::ULong index);
-
- private:
- ObjectKey *&ptr_;
- // Assignment from T_var not allowed.
- void operator= (const ObjectKey_var &);
- };
+ TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ObjectKey;
-#endif /* end #if !defined */
+// TAO_IDL - Generated from
+// be/be_visitor_module/module_ch.cpp:67
}
TAO_NAMESPACE_CLOSE // module TAO
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:48
+// be/be_visitor_sequence/any_op_ch.cpp:52
+
+TAO_Export void operator<<= (CORBA::Any &, const TAO::ObjectKey &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, TAO::ObjectKey*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, TAO::ObjectKey *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const TAO::ObjectKey *&);
+
+// TAO_IDL - Generated from
+// be/be_visitor_root/cdr_op.cpp:48
#ifndef __ACE_INLINE__
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57
+// be/be_visitor_sequence/cdr_op_ch.cpp:57
#if !defined _TAO_CDR_OP_TAO_ObjectKey_H_
#define _TAO_CDR_OP_TAO_ObjectKey_H_
@@ -210,12 +176,12 @@ TAO_Export CORBA::Boolean operator>> (
#endif /* _TAO_CDR_OP_TAO_ObjectKey_H_ */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:64
+// be/be_visitor_root/cdr_op.cpp:64
#endif /* __ACE_INLINE__ */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:1009
+// be/be_codegen.cpp:1018
#if defined (__ACE_INLINE__)
#include "Object_KeyC.i"