diff options
Diffstat (limited to 'TAO/tao/AnyTypeCode/TimeBaseA.cpp')
-rw-r--r-- | TAO/tao/AnyTypeCode/TimeBaseA.cpp | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/TAO/tao/AnyTypeCode/TimeBaseA.cpp b/TAO/tao/AnyTypeCode/TimeBaseA.cpp new file mode 100644 index 00000000000..444c8d69f0a --- /dev/null +++ b/TAO/tao/AnyTypeCode/TimeBaseA.cpp @@ -0,0 +1,271 @@ +// -*- 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 + +#include "TimeBaseA.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/AnyTypeCode/Recursive_Type_TypeCode.h" +#include "tao/CDR.h" +#include "tao/AnyTypeCode/Any.h" +#include "tao/AnyTypeCode/Any_Dual_Impl_T.h" + +// TAO_IDL - Generated from +// be\be_visitor_typecode/alias_typecode.cpp:50 + +static TAO::TypeCode::Alias<char const *, + CORBA::TypeCode_ptr const *, + TAO::Null_RefCount_Policy> + _tao_tc_TimeBase_TimeT ( + CORBA::tk_alias, + "IDL:omg.org/TimeBase/TimeT:1.0", + "TimeT", + &CORBA::_tc_ulonglong); + +namespace TimeBase +{ + ::CORBA::TypeCode_ptr const _tc_TimeT = + &_tao_tc_TimeBase_TimeT; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_typecode/alias_typecode.cpp:50 + +static TAO::TypeCode::Alias<char const *, + CORBA::TypeCode_ptr const *, + TAO::Null_RefCount_Policy> + _tao_tc_TimeBase_InaccuracyT ( + CORBA::tk_alias, + "IDL:omg.org/TimeBase/InaccuracyT:1.0", + "InaccuracyT", + &TimeBase::_tc_TimeT); + +namespace TimeBase +{ + ::CORBA::TypeCode_ptr const _tc_InaccuracyT = + &_tao_tc_TimeBase_InaccuracyT; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_typecode/alias_typecode.cpp:50 + +static TAO::TypeCode::Alias<char const *, + CORBA::TypeCode_ptr const *, + TAO::Null_RefCount_Policy> + _tao_tc_TimeBase_TdfT ( + CORBA::tk_alias, + "IDL:omg.org/TimeBase/TdfT:1.0", + "TdfT", + &CORBA::_tc_short); + +namespace TimeBase +{ + ::CORBA::TypeCode_ptr const _tc_TdfT = + &_tao_tc_TimeBase_TdfT; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_typecode/struct_typecode.cpp:87 + +static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_TimeBase_UtcT[] = + { + { "time", &TimeBase::_tc_TimeT }, + { "inacclo", &CORBA::_tc_ulong }, + { "inacchi", &CORBA::_tc_ushort }, + { "tdf", &TimeBase::_tc_TdfT } + + }; +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_TimeBase_UtcT ( + CORBA::tk_struct, + "IDL:omg.org/TimeBase/UtcT:1.0", + "UtcT", + _tao_fields_TimeBase_UtcT, + 4); + +namespace TimeBase +{ + ::CORBA::TypeCode_ptr const _tc_UtcT = + &_tao_tc_TimeBase_UtcT; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_typecode/struct_typecode.cpp:87 + +static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_TimeBase_IntervalT[] = + { + { "lower_bound", &TimeBase::_tc_TimeT }, + { "upper_bound", &TimeBase::_tc_TimeT } + + }; +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_TimeBase_IntervalT ( + CORBA::tk_struct, + "IDL:omg.org/TimeBase/IntervalT:1.0", + "IntervalT", + _tao_fields_TimeBase_IntervalT, + 2); + +namespace TimeBase +{ + ::CORBA::TypeCode_ptr const _tc_IntervalT = + &_tao_tc_TimeBase_IntervalT; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + const TimeBase::UtcT &_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<TimeBase::UtcT>::insert_copy ( + _tao_any, + TimeBase::UtcT::_tao_any_destructor, + TimeBase::_tc_UtcT, + _tao_elem + ); +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + TimeBase::UtcT *_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<TimeBase::UtcT>::insert ( + _tao_any, + TimeBase::UtcT::_tao_any_destructor, + TimeBase::_tc_UtcT, + _tao_elem + ); +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + TimeBase::UtcT *&_tao_elem + ) +{ + return _tao_any >>= const_cast< + const TimeBase::UtcT *&> ( + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const TimeBase::UtcT *&_tao_elem + ) +{ + return + TAO::Any_Dual_Impl_T<TimeBase::UtcT>::extract ( + _tao_any, + TimeBase::UtcT::_tao_any_destructor, + TimeBase::_tc_UtcT, + _tao_elem + ); +} + +// TAO_IDL - Generated from +// be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + const TimeBase::IntervalT &_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<TimeBase::IntervalT>::insert_copy ( + _tao_any, + TimeBase::IntervalT::_tao_any_destructor, + TimeBase::_tc_IntervalT, + _tao_elem + ); +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + TimeBase::IntervalT *_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<TimeBase::IntervalT>::insert ( + _tao_any, + TimeBase::IntervalT::_tao_any_destructor, + TimeBase::_tc_IntervalT, + _tao_elem + ); +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + TimeBase::IntervalT *&_tao_elem + ) +{ + return _tao_any >>= const_cast< + const TimeBase::IntervalT *&> ( + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const TimeBase::IntervalT *&_tao_elem + ) +{ + return + TAO::Any_Dual_Impl_T<TimeBase::IntervalT>::extract ( + _tao_any, + TimeBase::IntervalT::_tao_any_destructor, + TimeBase::_tc_IntervalT, + _tao_elem + ); +} |