summaryrefslogtreecommitdiff
path: root/dds_io_pub/IOTestC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dds_io_pub/IOTestC.cpp')
-rw-r--r--dds_io_pub/IOTestC.cpp254
1 files changed, 254 insertions, 0 deletions
diff --git a/dds_io_pub/IOTestC.cpp b/dds_io_pub/IOTestC.cpp
new file mode 100644
index 0000000..03b24b1
--- /dev/null
+++ b/dds_io_pub/IOTestC.cpp
@@ -0,0 +1,254 @@
+// -*- C++ -*-
+//
+// $Id$
+
+// **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
+// TAO and the TAO IDL Compiler have been developed by:
+// Center for Distributed Object Computing
+// Washington University
+// St. Louis, MO
+// USA
+// http://www.cs.wustl.edu/~schmidt/doc-center.html
+// and
+// Distributed Object Computing Laboratory
+// University of California at Irvine
+// 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
+// be/be_codegen.cpp:381
+
+
+#include "IOTestC.h"
+#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
+#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "tao/CDR.h"
+#include "tao/CDR.h"
+#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+
+#if !defined (__ACE_INLINE__)
+#include "IOTestC.inl"
+#endif /* !defined INLINE */
+
+// TAO_IDL - Generated from
+// be/be_visitor_arg_traits.cpp:72
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+// Arg traits specializations.
+namespace TAO
+{
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/struct_typecode.cpp:84
+
+static TAO::TypeCode::Struct_Field<
+ char const *,
+ ::CORBA::TypeCode_ptr const *> const
+ _tao_fields_IOTest_Port[] =
+ {
+ { "no", &CORBA::_tc_long },
+ { "value", &CORBA::_tc_long }
+ };
+
+static TAO::TypeCode::Struct<
+ char const *,
+ ::CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<
+ char const *,
+ ::CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+_tao_tc_IOTest_Port (
+ ::CORBA::tk_struct,
+ "IDL:IOTest/Port:1.0",
+ "Port",
+ _tao_fields_IOTest_Port,
+ 2);
+
+namespace IOTest
+{
+ ::CORBA::TypeCode_ptr const _tc_Port =
+ &_tao_tc_IOTest_Port;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/structure_cs.cpp:66
+
+void
+IOTest::Port::_tao_any_destructor (
+ void *_tao_void_pointer
+ )
+{
+ Port *_tao_tmp_pointer =
+ static_cast<Port *> (_tao_void_pointer);
+ delete _tao_tmp_pointer;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/any_op_cs.cpp:54
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+// Copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ const IOTest::Port &_tao_elem
+ )
+{
+ if (0 == &_tao_elem) // Trying to de-reference NULL object
+ _tao_any <<= static_cast<IOTest::Port *>( 0 ); // Use non-copying insertion of a NULL
+ else
+ TAO::Any_Dual_Impl_T<IOTest::Port>::insert_copy (
+ _tao_any,
+ IOTest::Port::_tao_any_destructor,
+ IOTest::_tc_Port,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ IOTest::Port *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOTest::Port>::insert (
+ _tao_any,
+ IOTest::Port::_tao_any_destructor,
+ IOTest::_tc_Port,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ IOTest::Port *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOTest::Port *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ const IOTest::Port *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOTest::Port>::extract (
+ _tao_any,
+ IOTest::Port::_tao_any_destructor,
+ IOTest::_tc_Port,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/cdr_op_cs.cpp:61
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const IOTest::Port &_tao_aggregate
+ )
+{
+ return
+ (strm << _tao_aggregate.no) &&
+ (strm << _tao_aggregate.value);
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ IOTest::Port &_tao_aggregate
+ )
+{
+ return
+ (strm >> _tao_aggregate.no) &&
+ (strm >> _tao_aggregate.value);
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/serializer_op_cs.cpp:61
+
+::CORBA::Boolean _dcps_has_key (const IOTest::Port& ) {
+ return true;
+}
+size_t _dcps_max_marshaled_size (const IOTest::Port& _tao_aggregate)
+{
+ ACE_UNUSED_ARG (_tao_aggregate); // sometimes not used - avoid warning
+ return
+ _dcps_max_marshaled_size (_tao_aggregate.no) +
+ _dcps_max_marshaled_size (_tao_aggregate.value);
+}
+
+::CORBA::Boolean _tao_is_bounded_size (const IOTest::Port& _tao_aggregate)
+{
+ ACE_UNUSED_ARG (_tao_aggregate); // often not used - avoid warning
+ return
+ true &&
+ true ;
+}
+
+size_t _dcps_find_size(const IOTest::Port& _tao_aggregate)
+{
+ ACE_UNUSED_ARG(_tao_aggregate); // sometimes not used - avoid warning
+ return
+ _dcps_max_marshaled_size (_tao_aggregate.no) +
+ _dcps_max_marshaled_size (_tao_aggregate.value);
+}
+
+::CORBA::Boolean operator<< (
+ TAO::DCPS::Serializer &strm,
+ const IOTest::Port &_tao_aggregate
+ )
+{
+ return
+ (strm << _tao_aggregate.no) &&
+ (strm << _tao_aggregate.value);
+}
+
+::CORBA::Boolean operator>> (
+ TAO::DCPS::Serializer &strm,
+ IOTest::Port &_tao_aggregate
+ )
+{
+ return
+ (strm >> _tao_aggregate.no) &&
+ (strm >> _tao_aggregate.value);
+}
+