// This file is generated by omniidl (C++ backend) - omniORB_4_1. Do not edit.

#include "IIS.hh"

OMNI_USING_NAMESPACE(omni)

static const char* _0RL_dyn_library_version = omniORB_4_1_dyn;

static ::CORBA::TypeCode::_Tracker _0RL_tcTrack(__FILE__);

static CORBA::PR_structMember _0RL_structmember_RTC_mTime[] = {
  {"sec", CORBA::TypeCode::PR_ulong_tc()},
  {"nsec", CORBA::TypeCode::PR_ulong_tc()}
};

#ifdef _0RL_tc_RTC_mTime
#  undef _0RL_tc_RTC_mTime
#endif
static CORBA::TypeCode_ptr _0RL_tc_RTC_mTime = CORBA::TypeCode::PR_struct_tc("IDL:RTC/Time:1.0", "Time", _0RL_structmember_RTC_mTime, 2, &_0RL_tcTrack);

static CORBA::PR_structMember _0RL_structmember_IIS_mTimedVelocity[] = {
  {"tm", _0RL_tc_RTC_mTime},
  {"id", CORBA::TypeCode::PR_sequence_tc(0, CORBA::TypeCode::PR_long_tc(), &_0RL_tcTrack)},
  {"vx", CORBA::TypeCode::PR_double_tc()},
  {"vy", CORBA::TypeCode::PR_double_tc()},
  {"w", CORBA::TypeCode::PR_double_tc()},
  {"error", CORBA::TypeCode::PR_sequence_tc(0, CORBA::TypeCode::PR_double_tc(), &_0RL_tcTrack)}
};

#ifdef _0RL_tc_IIS_mTimedVelocity
#  undef _0RL_tc_IIS_mTimedVelocity
#endif
static CORBA::TypeCode_ptr _0RL_tc_IIS_mTimedVelocity = CORBA::TypeCode::PR_struct_tc("IDL:IIS/TimedVelocity:1.0", "TimedVelocity", _0RL_structmember_IIS_mTimedVelocity, 6, &_0RL_tcTrack);


#if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
// MSVC++ does not give the constant external linkage otherwise.
namespace IIS { 
  const ::CORBA::TypeCode_ptr _tc_TimedVelocity = _0RL_tc_IIS_mTimedVelocity;
} 
#else
const ::CORBA::TypeCode_ptr IIS::_tc_TimedVelocity = _0RL_tc_IIS_mTimedVelocity;
#endif



static CORBA::PR_structMember _0RL_structmember_IIS_mTimedPosition[] = {
  {"tm", _0RL_tc_RTC_mTime},
  {"id", CORBA::TypeCode::PR_sequence_tc(0, CORBA::TypeCode::PR_long_tc(), &_0RL_tcTrack)},
  {"x", CORBA::TypeCode::PR_double_tc()},
  {"y", CORBA::TypeCode::PR_double_tc()},
  {"theta", CORBA::TypeCode::PR_double_tc()},
  {"error", CORBA::TypeCode::PR_sequence_tc(0, CORBA::TypeCode::PR_double_tc(), &_0RL_tcTrack)}
};

#ifdef _0RL_tc_IIS_mTimedPosition
#  undef _0RL_tc_IIS_mTimedPosition
#endif
static CORBA::TypeCode_ptr _0RL_tc_IIS_mTimedPosition = CORBA::TypeCode::PR_struct_tc("IDL:IIS/TimedPosition:1.0", "TimedPosition", _0RL_structmember_IIS_mTimedPosition, 6, &_0RL_tcTrack);


#if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
// MSVC++ does not give the constant external linkage otherwise.
namespace IIS { 
  const ::CORBA::TypeCode_ptr _tc_TimedPosition = _0RL_tc_IIS_mTimedPosition;
} 
#else
const ::CORBA::TypeCode_ptr IIS::_tc_TimedPosition = _0RL_tc_IIS_mTimedPosition;
#endif


static void _0RL_IIS_mTimedVelocity_marshal_fn(cdrStream& _s, void* _v)
{
  IIS::TimedVelocity* _p = (IIS::TimedVelocity*)_v;
  *_p >>= _s;
}
static void _0RL_IIS_mTimedVelocity_unmarshal_fn(cdrStream& _s, void*& _v)
{
  IIS::TimedVelocity* _p = new IIS::TimedVelocity;
  *_p <<= _s;
  _v = _p;
}
static void _0RL_IIS_mTimedVelocity_destructor_fn(void* _v)
{
  IIS::TimedVelocity* _p = (IIS::TimedVelocity*)_v;
  delete _p;
}

void operator<<=(::CORBA::Any& _a, const IIS::TimedVelocity& _s)
{
  IIS::TimedVelocity* _p = new IIS::TimedVelocity(_s);
  _a.PR_insert(_0RL_tc_IIS_mTimedVelocity,
               _0RL_IIS_mTimedVelocity_marshal_fn,
               _0RL_IIS_mTimedVelocity_destructor_fn,
               _p);
}
void operator<<=(::CORBA::Any& _a, IIS::TimedVelocity* _sp)
{
  _a.PR_insert(_0RL_tc_IIS_mTimedVelocity,
               _0RL_IIS_mTimedVelocity_marshal_fn,
               _0RL_IIS_mTimedVelocity_destructor_fn,
               _sp);
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, IIS::TimedVelocity*& _sp)
{
  return _a >>= (const IIS::TimedVelocity*&) _sp;
}
::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, const IIS::TimedVelocity*& _sp)
{
  void* _v;
  if (_a.PR_extract(_0RL_tc_IIS_mTimedVelocity,
                    _0RL_IIS_mTimedVelocity_unmarshal_fn,
                    _0RL_IIS_mTimedVelocity_marshal_fn,
                    _0RL_IIS_mTimedVelocity_destructor_fn,
                    _v)) {
    _sp = (const IIS::TimedVelocity*)_v;
    return 1;
  }
  return 0;
}

static void _0RL_IIS_mTimedPosition_marshal_fn(cdrStream& _s, void* _v)
{
  IIS::TimedPosition* _p = (IIS::TimedPosition*)_v;
  *_p >>= _s;
}
static void _0RL_IIS_mTimedPosition_unmarshal_fn(cdrStream& _s, void*& _v)
{
  IIS::TimedPosition* _p = new IIS::TimedPosition;
  *_p <<= _s;
  _v = _p;
}
static void _0RL_IIS_mTimedPosition_destructor_fn(void* _v)
{
  IIS::TimedPosition* _p = (IIS::TimedPosition*)_v;
  delete _p;
}

void operator<<=(::CORBA::Any& _a, const IIS::TimedPosition& _s)
{
  IIS::TimedPosition* _p = new IIS::TimedPosition(_s);
  _a.PR_insert(_0RL_tc_IIS_mTimedPosition,
               _0RL_IIS_mTimedPosition_marshal_fn,
               _0RL_IIS_mTimedPosition_destructor_fn,
               _p);
}
void operator<<=(::CORBA::Any& _a, IIS::TimedPosition* _sp)
{
  _a.PR_insert(_0RL_tc_IIS_mTimedPosition,
               _0RL_IIS_mTimedPosition_marshal_fn,
               _0RL_IIS_mTimedPosition_destructor_fn,
               _sp);
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, IIS::TimedPosition*& _sp)
{
  return _a >>= (const IIS::TimedPosition*&) _sp;
}
::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, const IIS::TimedPosition*& _sp)
{
  void* _v;
  if (_a.PR_extract(_0RL_tc_IIS_mTimedPosition,
                    _0RL_IIS_mTimedPosition_unmarshal_fn,
                    _0RL_IIS_mTimedPosition_marshal_fn,
                    _0RL_IIS_mTimedPosition_destructor_fn,
                    _v)) {
    _sp = (const IIS::TimedPosition*)_v;
    return 1;
  }
  return 0;
}

