// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SALOME__TestComponent_hh__
#define __SALOME__TestComponent_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__TestComponent
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
#endif



#ifndef __SALOME__Exception_hh_EXTERNAL_GUARD__
#define __SALOME__Exception_hh_EXTERNAL_GUARD__
#include <SALOME_Exception.hh>
#endif
#ifndef __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#define __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#include <SALOME_GenericObj.hh>
#endif
#ifndef __SALOMEDS_hh_EXTERNAL_GUARD__
#define __SALOMEDS_hh_EXTERNAL_GUARD__
#include <SALOMEDS.hh>
#endif
#ifndef __SALOME__PyNode_hh_EXTERNAL_GUARD__
#define __SALOME__PyNode_hh_EXTERNAL_GUARD__
#include <SALOME_PyNode.hh>
#endif
#ifndef __SALOME__Component_hh_EXTERNAL_GUARD__
#define __SALOME__Component_hh_EXTERNAL_GUARD__
#include <SALOME_Component.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

#ifndef __Engines_mTestComponent__
#define __Engines_mTestComponent__

  class TestComponent;
  class _objref_TestComponent;
  class _impl_TestComponent;
  
  typedef _objref_TestComponent* TestComponent_ptr;
  typedef TestComponent_ptr TestComponentRef;

  class TestComponent_Helper {
  public:
    typedef TestComponent_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_TestComponent, TestComponent_Helper> TestComponent_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_TestComponent,TestComponent_Helper > TestComponent_out;

#endif

  // interface TestComponent
  class TestComponent {
  public:
    // Declarations for this interface type.
    typedef TestComponent_ptr _ptr_type;
    typedef TestComponent_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_TestComponent :
    public virtual _objref_Component
  {
  public:
    char* Coucou(::CORBA::Long L);
    void Setenv();

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

  protected:
    virtual ~_objref_TestComponent();

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

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

    friend class TestComponent;
  };

  class _pof_TestComponent : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_TestComponent() : _OMNI_NS(proxyObjectFactory)(TestComponent::_PD_repoId) {}
    virtual ~_pof_TestComponent();

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

  class _impl_TestComponent :
    public virtual _impl_Component
  {
  public:
    virtual ~_impl_TestComponent();

    virtual char* Coucou(::CORBA::Long L) = 0;
    virtual void Setenv() = 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_TestComponent;

_CORBA_MODULE_END



_CORBA_MODULE POA_Engines
_CORBA_MODULE_BEG

  class TestComponent :
    public virtual Engines::_impl_TestComponent,
    public virtual Component
  {
  public:
    virtual ~TestComponent();

    inline ::Engines::TestComponent_ptr _this() {
      return (::Engines::TestComponent_ptr) _do_this(::Engines::TestComponent::_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, Engines::TestComponent_ptr _s);
void operator<<=(::CORBA::Any& _a, Engines::TestComponent_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, Engines::TestComponent_ptr& _s);



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




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestComponent
#endif

#endif  // __SALOME__TestComponent_hh__

