// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SALOME__PyNode_hh__
#define __SALOME__PyNode_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_SALOME__PyNode
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
#endif



#ifndef __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#define __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#include <SALOME_GenericObj.hh>
#endif
#ifndef __SALOME__Exception_hh_EXTERNAL_GUARD__
#define __SALOME__Exception_hh_EXTERNAL_GUARD__
#include <SALOME_Exception.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 Engines

_CORBA_MODULE_BEG

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_pickledArgs;

  class pickledArgs_var;

  class pickledArgs : public _CORBA_Unbounded_Sequence_Octet {
  public:
    typedef pickledArgs_var _var_type;
    inline pickledArgs() {}
    inline pickledArgs(const pickledArgs& _s)
      : _CORBA_Unbounded_Sequence_Octet(_s) {}

    inline pickledArgs(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_Octet(_max) {}
    inline pickledArgs(_CORBA_ULong _max, _CORBA_ULong _len, ::CORBA::Octet* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_Octet(_max, _len, _val, _rel) {}

  

    inline pickledArgs& operator = (const pickledArgs& _s) {
      _CORBA_Unbounded_Sequence_Octet::operator=(_s);
      return *this;
    }
  };

  class pickledArgs_out;

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

  

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

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

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

  

    pickledArgs*& _data;

  private:
    pickledArgs_out();
    pickledArgs_out& operator=(const pickledArgs_var&);
  };

#ifndef __Engines_mPyNode__
#define __Engines_mPyNode__

  class PyNode;
  class _objref_PyNode;
  class _impl_PyNode;
  
  typedef _objref_PyNode* PyNode_ptr;
  typedef PyNode_ptr PyNodeRef;

  class PyNode_Helper {
  public:
    typedef PyNode_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_PyNode, PyNode_Helper> PyNode_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_PyNode,PyNode_Helper > PyNode_out;

#endif

  // interface PyNode
  class PyNode {
  public:
    // Declarations for this interface type.
    typedef PyNode_ptr _ptr_type;
    typedef PyNode_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_PyNode :
    public virtual SALOME::_objref_GenericObj
  {
  public:
    pickledArgs* execute(const char* functionName, const ::Engines::pickledArgs& inargs);

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

  protected:
    virtual ~_objref_PyNode();

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

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

    friend class PyNode;
  };

  class _pof_PyNode : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_PyNode() : _OMNI_NS(proxyObjectFactory)(PyNode::_PD_repoId) {}
    virtual ~_pof_PyNode();

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

  class _impl_PyNode :
    public virtual SALOME::_impl_GenericObj
  {
  public:
    virtual ~_impl_PyNode();

    virtual pickledArgs* execute(const char* functionName, const ::Engines::pickledArgs& inargs) = 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_PyNode;

_CORBA_MODULE_END



_CORBA_MODULE POA_Engines
_CORBA_MODULE_BEG

  class PyNode :
    public virtual Engines::_impl_PyNode,
    public virtual POA_SALOME::GenericObj
  {
  public:
    virtual ~PyNode();

    inline ::Engines::PyNode_ptr _this() {
      return (::Engines::PyNode_ptr) _do_this(::Engines::PyNode::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_Engines
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

void operator<<=(::CORBA::Any& _a, const Engines::pickledArgs& _s);
void operator<<=(::CORBA::Any& _a, Engines::pickledArgs* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Engines::pickledArgs*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const Engines::pickledArgs*& _sp);

void operator<<=(::CORBA::Any& _a, Engines::PyNode_ptr _s);
void operator<<=(::CORBA::Any& _a, Engines::PyNode_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Engines::PyNode_ptr& _s);



inline void
Engines::PyNode::_marshalObjRef(::Engines::PyNode_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__PyNode
#endif

#endif  // __SALOME__PyNode_hh__

