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

#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB4/CORBA.h>
#endif

#ifndef  USE_stub_in_nt_dll
# define USE_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif



#ifndef __SALOME__Ports_hh_EXTERNAL_GUARD__
#define __SALOME__Ports_hh_EXTERNAL_GUARD__
#include <SALOME_Ports.hh>
#endif



#ifdef USE_stub_in_nt_dll
# ifndef USE_core_stub_in_nt_dll
#  define USE_core_stub_in_nt_dll
# endif
# ifndef USE_dyn_stub_in_nt_dll
#  define USE_dyn_stub_in_nt_dll
# endif
#endif

#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef  USE_core_stub_in_nt_dll
#  define _core_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _core_attr
# endif
#endif

#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef  USE_dyn_stub_in_nt_dll
#  define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _dyn_attr
# endif
#endif





_CORBA_MODULE Ports

_CORBA_MODULE_BEG

  _CORBA_MODULE Palm_Ports

  _CORBA_MODULE_BEG

#ifndef __Ports_mPalm__Ports_mPalm__Data__Short__Port__
#define __Ports_mPalm__Ports_mPalm__Data__Short__Port__

    class Palm_Data_Short_Port;
    class _objref_Palm_Data_Short_Port;
    class _impl_Palm_Data_Short_Port;
    
    typedef _objref_Palm_Data_Short_Port* Palm_Data_Short_Port_ptr;
    typedef Palm_Data_Short_Port_ptr Palm_Data_Short_PortRef;

    class Palm_Data_Short_Port_Helper {
    public:
      typedef Palm_Data_Short_Port_ptr _ptr_type;

      static _ptr_type _nil();
      static _CORBA_Boolean is_nil(_ptr_type);
      static void release(_ptr_type);
      static void duplicate(_ptr_type);
      static void marshalObjRef(_ptr_type, cdrStream&);
      static _ptr_type unmarshalObjRef(cdrStream&);
    };

    typedef _CORBA_ObjRef_Var<_objref_Palm_Data_Short_Port, Palm_Data_Short_Port_Helper> Palm_Data_Short_Port_var;
    typedef _CORBA_ObjRef_OUT_arg<_objref_Palm_Data_Short_Port,Palm_Data_Short_Port_Helper > Palm_Data_Short_Port_out;

#endif

    // interface Palm_Data_Short_Port
    class Palm_Data_Short_Port {
    public:
      // Declarations for this interface type.
      typedef Palm_Data_Short_Port_ptr _ptr_type;
      typedef Palm_Data_Short_Port_var _var_type;

      static _ptr_type _duplicate(_ptr_type);
      static _ptr_type _narrow(::CORBA::Object_ptr);
      static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
      
      static _ptr_type _nil();

      static inline void _marshalObjRef(_ptr_type, cdrStream&);

      static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
        omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
        if (o)
          return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
        else
          return _nil();
      }

      static _core_attr const char* _PD_repoId;

      // Other IDL defined within this scope.
      
    };

    class _objref_Palm_Data_Short_Port :
      public virtual _objref_Data_Port
    {
    public:
      void put(::CORBA::Short data, ::CORBA::Long time, ::CORBA::Long tag);

      inline _objref_Palm_Data_Short_Port()  { _PR_setobj(0); }  // nil
      _objref_Palm_Data_Short_Port(omniIOR*, omniIdentity*);

    protected:
      virtual ~_objref_Palm_Data_Short_Port();

      
    private:
      virtual void* _ptrToObjRef(const char*);

      _objref_Palm_Data_Short_Port(const _objref_Palm_Data_Short_Port&);
      _objref_Palm_Data_Short_Port& operator = (const _objref_Palm_Data_Short_Port&);
      // not implemented

      friend class Palm_Data_Short_Port;
    };

    class _pof_Palm_Data_Short_Port : public _OMNI_NS(proxyObjectFactory) {
    public:
      inline _pof_Palm_Data_Short_Port() : _OMNI_NS(proxyObjectFactory)(Palm_Data_Short_Port::_PD_repoId) {}
      virtual ~_pof_Palm_Data_Short_Port();

      virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
      virtual _CORBA_Boolean is_a(const char*) const;
    };

    class _impl_Palm_Data_Short_Port :
      public virtual _impl_Data_Port
    {
    public:
      virtual ~_impl_Palm_Data_Short_Port();

      virtual void put(::CORBA::Short data, ::CORBA::Long time, ::CORBA::Long tag) = 0;
      
    public:  // Really protected, workaround for xlC
      virtual _CORBA_Boolean _dispatch(omniCallHandle&);

    private:
      virtual void* _ptrToInterface(const char*);
      virtual const char* _mostDerivedRepoId();
      
    };


    _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Palm_Data_Short_Port;

    _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_seq_short;

    class seq_short_var;

    class seq_short : public _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Short, 2, 2 >  {
    public:
      typedef seq_short_var _var_type;
      inline seq_short() {}
      inline seq_short(const seq_short& _s)
        : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Short, 2, 2 > (_s) {}

      inline seq_short(_CORBA_ULong _max)
        : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Short, 2, 2 > (_max) {}
      inline seq_short(_CORBA_ULong _max, _CORBA_ULong _len, ::CORBA::Short* _val, _CORBA_Boolean _rel=0)
        : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Short, 2, 2 > (_max, _len, _val, _rel) {}

    

      inline seq_short& operator = (const seq_short& _s) {
        _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Short, 2, 2 > ::operator=(_s);
        return *this;
      }
    };

    class seq_short_out;

    class seq_short_var {
    public:
      inline seq_short_var() : _pd_seq(0) {}
      inline seq_short_var(seq_short* _s) : _pd_seq(_s) {}
      inline seq_short_var(const seq_short_var& _s) {
        if( _s._pd_seq )  _pd_seq = new seq_short(*_s._pd_seq);
        else              _pd_seq = 0;
      }
      inline ~seq_short_var() { if( _pd_seq )  delete _pd_seq; }
        
      inline seq_short_var& operator = (seq_short* _s) {
        if( _pd_seq )  delete _pd_seq;
        _pd_seq = _s;
        return *this;
      }
      inline seq_short_var& operator = (const seq_short_var& _s) {
        if( _s._pd_seq ) {
          if( !_pd_seq )  _pd_seq = new seq_short;
          *_pd_seq = *_s._pd_seq;
        } else if( _pd_seq ) {
          delete _pd_seq;
          _pd_seq = 0;
        }
        return *this;
      }
      inline ::CORBA::Short& operator [] (_CORBA_ULong _s) {
        return (*_pd_seq)[_s];
      }

    

      inline seq_short* operator -> () { return _pd_seq; }
      inline const seq_short* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
      inline operator seq_short& () const { return *_pd_seq; }
#else
      inline operator const seq_short& () const { return *_pd_seq; }
      inline operator seq_short& () { return *_pd_seq; }
#endif
        
      inline const seq_short& in() const { return *_pd_seq; }
      inline seq_short&       inout()    { return *_pd_seq; }
      inline seq_short*&      out() {
        if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
        return _pd_seq;
      }
      inline seq_short* _retn() { seq_short* tmp = _pd_seq; _pd_seq = 0; return tmp; }
        
      friend class seq_short_out;
      
    private:
      seq_short* _pd_seq;
    };

    class seq_short_out {
    public:
      inline seq_short_out(seq_short*& _s) : _data(_s) { _data = 0; }
      inline seq_short_out(seq_short_var& _s)
        : _data(_s._pd_seq) { _s = (seq_short*) 0; }
      inline seq_short_out(const seq_short_out& _s) : _data(_s._data) {}
      inline seq_short_out& operator = (const seq_short_out& _s) {
        _data = _s._data;
        return *this;
      }
      inline seq_short_out& operator = (seq_short* _s) {
        _data = _s;
        return *this;
      }
      inline operator seq_short*&()  { return _data; }
      inline seq_short*& ptr()       { return _data; }
      inline seq_short* operator->() { return _data; }

      inline ::CORBA::Short& operator [] (_CORBA_ULong _i) {
        return (*_data)[_i];
      }

    

      seq_short*& _data;

    private:
      seq_short_out();
      seq_short_out& operator=(const seq_short_var&);
    };

#ifndef __Ports_mPalm__Ports_mPalm__Data__Seq__Short__Port__
#define __Ports_mPalm__Ports_mPalm__Data__Seq__Short__Port__

    class Palm_Data_Seq_Short_Port;
    class _objref_Palm_Data_Seq_Short_Port;
    class _impl_Palm_Data_Seq_Short_Port;
    
    typedef _objref_Palm_Data_Seq_Short_Port* Palm_Data_Seq_Short_Port_ptr;
    typedef Palm_Data_Seq_Short_Port_ptr Palm_Data_Seq_Short_PortRef;

    class Palm_Data_Seq_Short_Port_Helper {
    public:
      typedef Palm_Data_Seq_Short_Port_ptr _ptr_type;

      static _ptr_type _nil();
      static _CORBA_Boolean is_nil(_ptr_type);
      static void release(_ptr_type);
      static void duplicate(_ptr_type);
      static void marshalObjRef(_ptr_type, cdrStream&);
      static _ptr_type unmarshalObjRef(cdrStream&);
    };

    typedef _CORBA_ObjRef_Var<_objref_Palm_Data_Seq_Short_Port, Palm_Data_Seq_Short_Port_Helper> Palm_Data_Seq_Short_Port_var;
    typedef _CORBA_ObjRef_OUT_arg<_objref_Palm_Data_Seq_Short_Port,Palm_Data_Seq_Short_Port_Helper > Palm_Data_Seq_Short_Port_out;

#endif

    // interface Palm_Data_Seq_Short_Port
    class Palm_Data_Seq_Short_Port {
    public:
      // Declarations for this interface type.
      typedef Palm_Data_Seq_Short_Port_ptr _ptr_type;
      typedef Palm_Data_Seq_Short_Port_var _var_type;

      static _ptr_type _duplicate(_ptr_type);
      static _ptr_type _narrow(::CORBA::Object_ptr);
      static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
      
      static _ptr_type _nil();

      static inline void _marshalObjRef(_ptr_type, cdrStream&);

      static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
        omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
        if (o)
          return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
        else
          return _nil();
      }

      static _core_attr const char* _PD_repoId;

      // Other IDL defined within this scope.
      
    };

    class _objref_Palm_Data_Seq_Short_Port :
      public virtual _objref_Data_Port
    {
    public:
      void put(const ::Ports::Palm_Ports::seq_short& data, ::CORBA::Long time, ::CORBA::Long tag);

      inline _objref_Palm_Data_Seq_Short_Port()  { _PR_setobj(0); }  // nil
      _objref_Palm_Data_Seq_Short_Port(omniIOR*, omniIdentity*);

    protected:
      virtual ~_objref_Palm_Data_Seq_Short_Port();

      
    private:
      virtual void* _ptrToObjRef(const char*);

      _objref_Palm_Data_Seq_Short_Port(const _objref_Palm_Data_Seq_Short_Port&);
      _objref_Palm_Data_Seq_Short_Port& operator = (const _objref_Palm_Data_Seq_Short_Port&);
      // not implemented

      friend class Palm_Data_Seq_Short_Port;
    };

    class _pof_Palm_Data_Seq_Short_Port : public _OMNI_NS(proxyObjectFactory) {
    public:
      inline _pof_Palm_Data_Seq_Short_Port() : _OMNI_NS(proxyObjectFactory)(Palm_Data_Seq_Short_Port::_PD_repoId) {}
      virtual ~_pof_Palm_Data_Seq_Short_Port();

      virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
      virtual _CORBA_Boolean is_a(const char*) const;
    };

    class _impl_Palm_Data_Seq_Short_Port :
      public virtual _impl_Data_Port
    {
    public:
      virtual ~_impl_Palm_Data_Seq_Short_Port();

      virtual void put(const ::Ports::Palm_Ports::seq_short& data, ::CORBA::Long time, ::CORBA::Long tag) = 0;
      
    public:  // Really protected, workaround for xlC
      virtual _CORBA_Boolean _dispatch(omniCallHandle&);

    private:
      virtual void* _ptrToInterface(const char*);
      virtual const char* _mostDerivedRepoId();
      
    };


    _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Palm_Data_Seq_Short_Port;

  _CORBA_MODULE_END

_CORBA_MODULE_END



_CORBA_MODULE POA_Ports
_CORBA_MODULE_BEG

  _CORBA_MODULE Palm_Ports
  _CORBA_MODULE_BEG

    class Palm_Data_Short_Port :
      public virtual Ports::Palm_Ports::_impl_Palm_Data_Short_Port,
      public virtual Data_Port
    {
    public:
      virtual ~Palm_Data_Short_Port();

      inline ::Ports::Palm_Ports::Palm_Data_Short_Port_ptr _this() {
        return (::Ports::Palm_Ports::Palm_Data_Short_Port_ptr) _do_this(::Ports::Palm_Ports::Palm_Data_Short_Port::_PD_repoId);
      }
    };

    class Palm_Data_Seq_Short_Port :
      public virtual Ports::Palm_Ports::_impl_Palm_Data_Seq_Short_Port,
      public virtual Data_Port
    {
    public:
      virtual ~Palm_Data_Seq_Short_Port();

      inline ::Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr _this() {
        return (::Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr) _do_this(::Ports::Palm_Ports::Palm_Data_Seq_Short_Port::_PD_repoId);
      }
    };

  _CORBA_MODULE_END

_CORBA_MODULE_END



_CORBA_MODULE OBV_Ports
_CORBA_MODULE_BEG

  _CORBA_MODULE Palm_Ports
  _CORBA_MODULE_BEG

  _CORBA_MODULE_END

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

void operator<<=(::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Short_Port_ptr _s);
void operator<<=(::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Short_Port_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Short_Port_ptr& _s);

void operator<<=(::CORBA::Any& _a, const Ports::Palm_Ports::seq_short& _s);
void operator<<=(::CORBA::Any& _a, Ports::Palm_Ports::seq_short* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Ports::Palm_Ports::seq_short*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const Ports::Palm_Ports::seq_short*& _sp);

void operator<<=(::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr _s);
void operator<<=(::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr& _s);



inline void
Ports::Palm_Ports::Palm_Data_Short_Port::_marshalObjRef(::Ports::Palm_Ports::Palm_Data_Short_Port_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
Ports::Palm_Ports::Palm_Data_Seq_Short_Port::_marshalObjRef(::Ports::Palm_Ports::Palm_Data_Seq_Short_Port_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_Palm__Ports
#endif

#endif  // __Palm__Ports_hh__

