// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SALOME__TestModuleCatalog_hh__
#define __SALOME__TestModuleCatalog_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__TestModuleCatalog
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
#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 SALOME_TestModuleCatalog

_CORBA_MODULE_BEG

#ifndef __SALOME__TestModuleCatalog_mAdder__
#define __SALOME__TestModuleCatalog_mAdder__

  class Adder;
  class _objref_Adder;
  class _impl_Adder;
  
  typedef _objref_Adder* Adder_ptr;
  typedef Adder_ptr AdderRef;

  class Adder_Helper {
  public:
    typedef Adder_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_Adder, Adder_Helper> Adder_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Adder,Adder_Helper > Adder_out;

#endif

#ifndef __SALOME__TestModuleCatalog_mAddComponent__
#define __SALOME__TestModuleCatalog_mAddComponent__

  class AddComponent;
  class _objref_AddComponent;
  class _impl_AddComponent;
  
  typedef _objref_AddComponent* AddComponent_ptr;
  typedef AddComponent_ptr AddComponentRef;

  class AddComponent_Helper {
  public:
    typedef AddComponent_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_AddComponent, AddComponent_Helper> AddComponent_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_AddComponent,AddComponent_Helper > AddComponent_out;

#endif

  // interface AddComponent
  class AddComponent {
  public:
    // Declarations for this interface type.
    typedef AddComponent_ptr _ptr_type;
    typedef AddComponent_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_AddComponent :
    public virtual Engines::_objref_Component
  {
  public:
    Adder_ptr Addition();
    ::CORBA::Double Add(::CORBA::Double x, ::CORBA::Double y, ::CORBA::Double& z);
    ::CORBA::Long Sigma(::CORBA::Long n);
    ::CORBA::Double LastResult();

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

  protected:
    virtual ~_objref_AddComponent();

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

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

    friend class AddComponent;
  };

  class _pof_AddComponent : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_AddComponent() : _OMNI_NS(proxyObjectFactory)(AddComponent::_PD_repoId) {}
    virtual ~_pof_AddComponent();

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

  class _impl_AddComponent :
    public virtual Engines::_impl_Component
  {
  public:
    virtual ~_impl_AddComponent();

    virtual Adder_ptr Addition() = 0;
    virtual ::CORBA::Double Add(::CORBA::Double x, ::CORBA::Double y, ::CORBA::Double& z) = 0;
    virtual ::CORBA::Long Sigma(::CORBA::Long n) = 0;
    virtual ::CORBA::Double LastResult() = 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_AddComponent;

#ifndef __SALOME__TestModuleCatalog_mAdder__
#define __SALOME__TestModuleCatalog_mAdder__

  class Adder;
  class _objref_Adder;
  class _impl_Adder;
  
  typedef _objref_Adder* Adder_ptr;
  typedef Adder_ptr AdderRef;

  class Adder_Helper {
  public:
    typedef Adder_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_Adder, Adder_Helper> Adder_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Adder,Adder_Helper > Adder_out;

#endif

  // interface Adder
  class Adder {
  public:
    // Declarations for this interface type.
    typedef Adder_ptr _ptr_type;
    typedef Adder_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_Adder :
    public virtual Engines::_objref_Component
  {
  public:
    ::CORBA::Double Add(::CORBA::Double x, ::CORBA::Double y, ::CORBA::Double& z);
    ::CORBA::Double AddAndCompare(::CORBA::Double x, ::CORBA::Double y, ::SALOME_TestModuleCatalog::Adder_ptr anOtherAdder, ::CORBA::Double& z);
    void SetLastResult(::CORBA::Double z);
    void LastResult(::CORBA::Double& z);

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

  protected:
    virtual ~_objref_Adder();

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

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

    friend class Adder;
  };

  class _pof_Adder : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_Adder() : _OMNI_NS(proxyObjectFactory)(Adder::_PD_repoId) {}
    virtual ~_pof_Adder();

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

  class _impl_Adder :
    public virtual Engines::_impl_Component
  {
  public:
    virtual ~_impl_Adder();

    virtual ::CORBA::Double Add(::CORBA::Double x, ::CORBA::Double y, ::CORBA::Double& z) = 0;
    virtual ::CORBA::Double AddAndCompare(::CORBA::Double x, ::CORBA::Double y, ::SALOME_TestModuleCatalog::Adder_ptr anOtherAdder, ::CORBA::Double& z) = 0;
    virtual void SetLastResult(::CORBA::Double z) = 0;
    virtual void LastResult(::CORBA::Double& z) = 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_Adder;

_CORBA_MODULE_END



_CORBA_MODULE POA_SALOME_TestModuleCatalog
_CORBA_MODULE_BEG

  class AddComponent :
    public virtual SALOME_TestModuleCatalog::_impl_AddComponent,
    public virtual POA_Engines::Component
  {
  public:
    virtual ~AddComponent();

    inline ::SALOME_TestModuleCatalog::AddComponent_ptr _this() {
      return (::SALOME_TestModuleCatalog::AddComponent_ptr) _do_this(::SALOME_TestModuleCatalog::AddComponent::_PD_repoId);
    }
  };

  class Adder :
    public virtual SALOME_TestModuleCatalog::_impl_Adder,
    public virtual POA_Engines::Component
  {
  public:
    virtual ~Adder();

    inline ::SALOME_TestModuleCatalog::Adder_ptr _this() {
      return (::SALOME_TestModuleCatalog::Adder_ptr) _do_this(::SALOME_TestModuleCatalog::Adder::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_SALOME_TestModuleCatalog
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

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

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



inline void
SALOME_TestModuleCatalog::AddComponent::_marshalObjRef(::SALOME_TestModuleCatalog::AddComponent_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SALOME_TestModuleCatalog::Adder::_marshalObjRef(::SALOME_TestModuleCatalog::Adder_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__TestModuleCatalog
#endif

#endif  // __SALOME__TestModuleCatalog_hh__

