From cf15d52a8d98f69623bcacda785d71872551f040 Mon Sep 17 00:00:00 2001 From: guest Date: Wed, 10 Oct 2007 08:11:16 +0000 Subject: Initial import. git-svn-id: svn+ssh://mecka.net/home/svn/dds@5 c30cbac5-9f56-4f76-8ed5-5c34e48a65ae --- dds_io_pub/IOTestC.cpp | 254 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 254 insertions(+) create mode 100644 dds_io_pub/IOTestC.cpp (limited to 'dds_io_pub/IOTestC.cpp') 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 (_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( 0 ); // Use non-copying insertion of a NULL + else + TAO::Any_Dual_Impl_T::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::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::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); +} + -- cgit v1.2.3