// This file is generated by omniidl (C++ backend)- omniORB_4_3. Do not edit.
#ifndef pp_manipulation_idl__device_hh__
#define pp_manipulation_idl__device_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_device
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_device
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_device
#endif



#ifndef pp_manipulation_idl__common_hh_EXTERNAL_GUARD__
#define pp_manipulation_idl__common_hh_EXTERNAL_GUARD__
#include <hpp/common-idl.hh>
#endif
#ifndef pp_manipulation_idl__robots_hh_EXTERNAL_GUARD__
#define pp_manipulation_idl__robots_hh_EXTERNAL_GUARD__
#include <hpp/pinocchio_idl/robots-idl.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 hpp

_CORBA_MODULE_BEG

  _CORBA_MODULE manipulation_idl

  _CORBA_MODULE_BEG

#ifndef __hpp_mmanipulation__idl_mHandle__
#define __hpp_mmanipulation__idl_mHandle__
    class Handle;
    class _objref_Handle;
    class _impl_Handle;
    
    typedef _objref_Handle* Handle_ptr;
    typedef Handle_ptr HandleRef;

    class Handle_Helper {
    public:
      typedef Handle_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_Handle, Handle_Helper> Handle_var;
    typedef _CORBA_ObjRef_OUT_arg<_objref_Handle,Handle_Helper > Handle_out;

#endif

    // interface Handle
    class Handle {
    public:
      // Declarations for this interface type.
      typedef Handle_ptr _ptr_type;
      typedef Handle_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 inline _ptr_type _fromObjRef(omniObjRef* o) {
        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_Handle :
      public virtual ::CORBA::Object,
      public virtual omniObjRef
    {
    public:
      // IDL operations
      void setMask(const ::hpp::boolSeq& mask);

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

    protected:
      virtual ~_objref_Handle();

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

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

      friend class Handle;
    };

    class _pof_Handle : public _OMNI_NS(proxyObjectFactory) {
    public:
      inline _pof_Handle() : _OMNI_NS(proxyObjectFactory)(Handle::_PD_repoId) {}
      virtual ~_pof_Handle();

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

    class _impl_Handle :
      public virtual omniServant
    {
    public:
      virtual ~_impl_Handle();

      virtual void setMask(const ::hpp::boolSeq& mask) = 0;
      
    public:  // Really protected, workaround for xlC
      virtual _CORBA_Boolean _dispatch(omniCallHandle&);

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


#ifndef __hpp_mmanipulation__idl_mDevice__
#define __hpp_mmanipulation__idl_mDevice__
    class Device;
    class _objref_Device;
    class _impl_Device;
    
    typedef _objref_Device* Device_ptr;
    typedef Device_ptr DeviceRef;

    class Device_Helper {
    public:
      typedef Device_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_Device, Device_Helper> Device_var;
    typedef _CORBA_ObjRef_OUT_arg<_objref_Device,Device_Helper > Device_out;

#endif

    // interface Device
    class Device {
    public:
      // Declarations for this interface type.
      typedef Device_ptr _ptr_type;
      typedef Device_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 inline _ptr_type _fromObjRef(omniObjRef* o) {
        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_Device :
      public virtual pinocchio_idl::_objref_Device
    {
    public:
      // IDL operations
      Names_t* getHandleNames();
      Handle_ptr getHandle(const char* name);

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

    protected:
      virtual ~_objref_Device();

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

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

      friend class Device;
    };

    class _pof_Device : public _OMNI_NS(proxyObjectFactory) {
    public:
      inline _pof_Device() : _OMNI_NS(proxyObjectFactory)(Device::_PD_repoId) {}
      virtual ~_pof_Device();

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

    class _impl_Device :
      public virtual pinocchio_idl::_impl_Device
    {
    public:
      virtual ~_impl_Device();

      virtual Names_t* getHandleNames() = 0;
      virtual Handle_ptr getHandle(const char* name) = 0;
      
    public:  // Really protected, workaround for xlC
      virtual _CORBA_Boolean _dispatch(omniCallHandle&);

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


  _CORBA_MODULE_END

_CORBA_MODULE_END



_CORBA_MODULE POA_hpp
_CORBA_MODULE_BEG

  _CORBA_MODULE manipulation_idl
  _CORBA_MODULE_BEG

    class Handle :
      public virtual hpp::manipulation_idl::_impl_Handle,
      public virtual ::PortableServer::ServantBase
    {
    public:
      virtual ~Handle();

      inline ::hpp::manipulation_idl::Handle_ptr _this() {
        return (::hpp::manipulation_idl::Handle_ptr) _do_this(::hpp::manipulation_idl::Handle::_PD_repoId);
      }
    };

    class Device :
      public virtual hpp::manipulation_idl::_impl_Device,
      public virtual pinocchio_idl::Device
    {
    public:
      virtual ~Device();

      inline ::hpp::manipulation_idl::Device_ptr _this() {
        return (::hpp::manipulation_idl::Device_ptr) _do_this(::hpp::manipulation_idl::Device::_PD_repoId);
      }
    };

  _CORBA_MODULE_END

_CORBA_MODULE_END



_CORBA_MODULE OBV_hpp
_CORBA_MODULE_BEG

  _CORBA_MODULE manipulation_idl
  _CORBA_MODULE_BEG

  _CORBA_MODULE_END

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr



inline void
hpp::manipulation_idl::Handle::_marshalObjRef(::hpp::manipulation_idl::Handle_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}

inline void
hpp::manipulation_idl::Device::_marshalObjRef(::hpp::manipulation_idl::Device_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}



#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_device
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_device
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_device
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_device
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_device
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_device
#endif

#endif  // __device_hh__

