// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SMESH__Hypothesis_hh__
#define __SMESH__Hypothesis_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_SMESH__Hypothesis
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
#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



#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 SMESH

_CORBA_MODULE_BEG

  enum Dimension { DIM_0D, DIM_1D, DIM_2D, DIM_3D /*, __max_Dimension=0xffffffff */ };
  typedef Dimension& Dimension_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Dimension;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ListOfParameters;

  class ListOfParameters_var;

  class ListOfParameters : public _CORBA_Unbounded_Sequence_String {
  public:
    typedef ListOfParameters_var _var_type;
    inline ListOfParameters() {}
    inline ListOfParameters(const ListOfParameters& _s)
      : _CORBA_Unbounded_Sequence_String(_s) {}

    inline ListOfParameters(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_String(_max) {}
    inline ListOfParameters(_CORBA_ULong _max, _CORBA_ULong _len, char** _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_String(_max, _len, _val, _rel) {}

  

    inline ListOfParameters& operator = (const ListOfParameters& _s) {
      _CORBA_Unbounded_Sequence_String::operator=(_s);
      return *this;
    }
  };

  class ListOfParameters_out;

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

  

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

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

    inline _CORBA_String_element operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    ListOfParameters*& _data;

  private:
    ListOfParameters_out();
    ListOfParameters_out& operator=(const ListOfParameters_var&);
  };

#ifndef __SMESH_mSMESH__Hypothesis__
#define __SMESH_mSMESH__Hypothesis__

  class SMESH_Hypothesis;
  class _objref_SMESH_Hypothesis;
  class _impl_SMESH_Hypothesis;
  
  typedef _objref_SMESH_Hypothesis* SMESH_Hypothesis_ptr;
  typedef SMESH_Hypothesis_ptr SMESH_HypothesisRef;

  class SMESH_Hypothesis_Helper {
  public:
    typedef SMESH_Hypothesis_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_SMESH_Hypothesis, SMESH_Hypothesis_Helper> SMESH_Hypothesis_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_Hypothesis,SMESH_Hypothesis_Helper > SMESH_Hypothesis_out;

#endif

  // interface SMESH_Hypothesis
  class SMESH_Hypothesis {
  public:
    // Declarations for this interface type.
    typedef SMESH_Hypothesis_ptr _ptr_type;
    typedef SMESH_Hypothesis_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_SMESH_Hypothesis :
    public virtual SALOME::_objref_GenericObj
  {
  public:
    char* GetName();
    char* GetLibName();
    ::CORBA::Long GetId();
    void SetParameters(const char* theParameters);
    char* GetParameters();
    ListOfParameters* GetLastParameters();
    void SetLastParameters(const char* theParameters);
    void ClearParameters();
    ::CORBA::Boolean IsDimSupported(::SMESH::Dimension type);

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

  protected:
    virtual ~_objref_SMESH_Hypothesis();

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

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

    friend class SMESH_Hypothesis;
  };

  class _pof_SMESH_Hypothesis : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_Hypothesis() : _OMNI_NS(proxyObjectFactory)(SMESH_Hypothesis::_PD_repoId) {}
    virtual ~_pof_SMESH_Hypothesis();

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

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

    virtual char* GetName() = 0;
    virtual char* GetLibName() = 0;
    virtual ::CORBA::Long GetId() = 0;
    virtual void SetParameters(const char* theParameters) = 0;
    virtual char* GetParameters() = 0;
    virtual ListOfParameters* GetLastParameters() = 0;
    virtual void SetLastParameters(const char* theParameters) = 0;
    virtual void ClearParameters() = 0;
    virtual ::CORBA::Boolean IsDimSupported(::SMESH::Dimension type) = 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_SMESH_Hypothesis;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ListOfHypothesisName;

  class ListOfHypothesisName_var;

  class ListOfHypothesisName : public _CORBA_Unbounded_Sequence_String {
  public:
    typedef ListOfHypothesisName_var _var_type;
    inline ListOfHypothesisName() {}
    inline ListOfHypothesisName(const ListOfHypothesisName& _s)
      : _CORBA_Unbounded_Sequence_String(_s) {}

    inline ListOfHypothesisName(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_String(_max) {}
    inline ListOfHypothesisName(_CORBA_ULong _max, _CORBA_ULong _len, char** _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_String(_max, _len, _val, _rel) {}

  

    inline ListOfHypothesisName& operator = (const ListOfHypothesisName& _s) {
      _CORBA_Unbounded_Sequence_String::operator=(_s);
      return *this;
    }
  };

  class ListOfHypothesisName_out;

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

  

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

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

    inline _CORBA_String_element operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    ListOfHypothesisName*& _data;

  private:
    ListOfHypothesisName_out();
    ListOfHypothesisName_out& operator=(const ListOfHypothesisName_var&);
  };

#ifndef __SMESH_mSMESH__Algo__
#define __SMESH_mSMESH__Algo__

  class SMESH_Algo;
  class _objref_SMESH_Algo;
  class _impl_SMESH_Algo;
  
  typedef _objref_SMESH_Algo* SMESH_Algo_ptr;
  typedef SMESH_Algo_ptr SMESH_AlgoRef;

  class SMESH_Algo_Helper {
  public:
    typedef SMESH_Algo_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_SMESH_Algo, SMESH_Algo_Helper> SMESH_Algo_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_Algo,SMESH_Algo_Helper > SMESH_Algo_out;

#endif

  // interface SMESH_Algo
  class SMESH_Algo {
  public:
    // Declarations for this interface type.
    typedef SMESH_Algo_ptr _ptr_type;
    typedef SMESH_Algo_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_SMESH_Algo :
    public virtual _objref_SMESH_Hypothesis
  {
  public:
    ListOfHypothesisName* GetCompatibleHypothesis();

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

  protected:
    virtual ~_objref_SMESH_Algo();

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

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

    friend class SMESH_Algo;
  };

  class _pof_SMESH_Algo : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_Algo() : _OMNI_NS(proxyObjectFactory)(SMESH_Algo::_PD_repoId) {}
    virtual ~_pof_SMESH_Algo();

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

  class _impl_SMESH_Algo :
    public virtual _impl_SMESH_Hypothesis
  {
  public:
    virtual ~_impl_SMESH_Algo();

    virtual ListOfHypothesisName* GetCompatibleHypothesis() = 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_SMESH_Algo;

#ifndef __SMESH_mSMESH__0D__Algo__
#define __SMESH_mSMESH__0D__Algo__

  class SMESH_0D_Algo;
  class _objref_SMESH_0D_Algo;
  class _impl_SMESH_0D_Algo;
  
  typedef _objref_SMESH_0D_Algo* SMESH_0D_Algo_ptr;
  typedef SMESH_0D_Algo_ptr SMESH_0D_AlgoRef;

  class SMESH_0D_Algo_Helper {
  public:
    typedef SMESH_0D_Algo_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_SMESH_0D_Algo, SMESH_0D_Algo_Helper> SMESH_0D_Algo_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_0D_Algo,SMESH_0D_Algo_Helper > SMESH_0D_Algo_out;

#endif

  // interface SMESH_0D_Algo
  class SMESH_0D_Algo {
  public:
    // Declarations for this interface type.
    typedef SMESH_0D_Algo_ptr _ptr_type;
    typedef SMESH_0D_Algo_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_SMESH_0D_Algo :
    public virtual _objref_SMESH_Algo
  {
  public:
    

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

  protected:
    virtual ~_objref_SMESH_0D_Algo();

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

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

    friend class SMESH_0D_Algo;
  };

  class _pof_SMESH_0D_Algo : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_0D_Algo() : _OMNI_NS(proxyObjectFactory)(SMESH_0D_Algo::_PD_repoId) {}
    virtual ~_pof_SMESH_0D_Algo();

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

  class _impl_SMESH_0D_Algo :
    public virtual _impl_SMESH_Algo
  {
  public:
    virtual ~_impl_SMESH_0D_Algo();

    
    
  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_SMESH_0D_Algo;

#ifndef __SMESH_mSMESH__1D__Algo__
#define __SMESH_mSMESH__1D__Algo__

  class SMESH_1D_Algo;
  class _objref_SMESH_1D_Algo;
  class _impl_SMESH_1D_Algo;
  
  typedef _objref_SMESH_1D_Algo* SMESH_1D_Algo_ptr;
  typedef SMESH_1D_Algo_ptr SMESH_1D_AlgoRef;

  class SMESH_1D_Algo_Helper {
  public:
    typedef SMESH_1D_Algo_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_SMESH_1D_Algo, SMESH_1D_Algo_Helper> SMESH_1D_Algo_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_1D_Algo,SMESH_1D_Algo_Helper > SMESH_1D_Algo_out;

#endif

  // interface SMESH_1D_Algo
  class SMESH_1D_Algo {
  public:
    // Declarations for this interface type.
    typedef SMESH_1D_Algo_ptr _ptr_type;
    typedef SMESH_1D_Algo_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_SMESH_1D_Algo :
    public virtual _objref_SMESH_Algo
  {
  public:
    

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

  protected:
    virtual ~_objref_SMESH_1D_Algo();

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

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

    friend class SMESH_1D_Algo;
  };

  class _pof_SMESH_1D_Algo : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_1D_Algo() : _OMNI_NS(proxyObjectFactory)(SMESH_1D_Algo::_PD_repoId) {}
    virtual ~_pof_SMESH_1D_Algo();

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

  class _impl_SMESH_1D_Algo :
    public virtual _impl_SMESH_Algo
  {
  public:
    virtual ~_impl_SMESH_1D_Algo();

    
    
  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_SMESH_1D_Algo;

#ifndef __SMESH_mSMESH__2D__Algo__
#define __SMESH_mSMESH__2D__Algo__

  class SMESH_2D_Algo;
  class _objref_SMESH_2D_Algo;
  class _impl_SMESH_2D_Algo;
  
  typedef _objref_SMESH_2D_Algo* SMESH_2D_Algo_ptr;
  typedef SMESH_2D_Algo_ptr SMESH_2D_AlgoRef;

  class SMESH_2D_Algo_Helper {
  public:
    typedef SMESH_2D_Algo_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_SMESH_2D_Algo, SMESH_2D_Algo_Helper> SMESH_2D_Algo_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_2D_Algo,SMESH_2D_Algo_Helper > SMESH_2D_Algo_out;

#endif

  // interface SMESH_2D_Algo
  class SMESH_2D_Algo {
  public:
    // Declarations for this interface type.
    typedef SMESH_2D_Algo_ptr _ptr_type;
    typedef SMESH_2D_Algo_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_SMESH_2D_Algo :
    public virtual _objref_SMESH_Algo
  {
  public:
    

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

  protected:
    virtual ~_objref_SMESH_2D_Algo();

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

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

    friend class SMESH_2D_Algo;
  };

  class _pof_SMESH_2D_Algo : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_2D_Algo() : _OMNI_NS(proxyObjectFactory)(SMESH_2D_Algo::_PD_repoId) {}
    virtual ~_pof_SMESH_2D_Algo();

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

  class _impl_SMESH_2D_Algo :
    public virtual _impl_SMESH_Algo
  {
  public:
    virtual ~_impl_SMESH_2D_Algo();

    
    
  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_SMESH_2D_Algo;

#ifndef __SMESH_mSMESH__3D__Algo__
#define __SMESH_mSMESH__3D__Algo__

  class SMESH_3D_Algo;
  class _objref_SMESH_3D_Algo;
  class _impl_SMESH_3D_Algo;
  
  typedef _objref_SMESH_3D_Algo* SMESH_3D_Algo_ptr;
  typedef SMESH_3D_Algo_ptr SMESH_3D_AlgoRef;

  class SMESH_3D_Algo_Helper {
  public:
    typedef SMESH_3D_Algo_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_SMESH_3D_Algo, SMESH_3D_Algo_Helper> SMESH_3D_Algo_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_3D_Algo,SMESH_3D_Algo_Helper > SMESH_3D_Algo_out;

#endif

  // interface SMESH_3D_Algo
  class SMESH_3D_Algo {
  public:
    // Declarations for this interface type.
    typedef SMESH_3D_Algo_ptr _ptr_type;
    typedef SMESH_3D_Algo_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_SMESH_3D_Algo :
    public virtual _objref_SMESH_Algo
  {
  public:
    

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

  protected:
    virtual ~_objref_SMESH_3D_Algo();

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

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

    friend class SMESH_3D_Algo;
  };

  class _pof_SMESH_3D_Algo : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_3D_Algo() : _OMNI_NS(proxyObjectFactory)(SMESH_3D_Algo::_PD_repoId) {}
    virtual ~_pof_SMESH_3D_Algo();

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

  class _impl_SMESH_3D_Algo :
    public virtual _impl_SMESH_Algo
  {
  public:
    virtual ~_impl_SMESH_3D_Algo();

    
    
  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_SMESH_3D_Algo;

_CORBA_MODULE_END



_CORBA_MODULE POA_SMESH
_CORBA_MODULE_BEG

  class SMESH_Hypothesis :
    public virtual SMESH::_impl_SMESH_Hypothesis,
    public virtual POA_SALOME::GenericObj
  {
  public:
    virtual ~SMESH_Hypothesis();

    inline ::SMESH::SMESH_Hypothesis_ptr _this() {
      return (::SMESH::SMESH_Hypothesis_ptr) _do_this(::SMESH::SMESH_Hypothesis::_PD_repoId);
    }
  };

  class SMESH_Algo :
    public virtual SMESH::_impl_SMESH_Algo,
    public virtual SMESH_Hypothesis
  {
  public:
    virtual ~SMESH_Algo();

    inline ::SMESH::SMESH_Algo_ptr _this() {
      return (::SMESH::SMESH_Algo_ptr) _do_this(::SMESH::SMESH_Algo::_PD_repoId);
    }
  };

  class SMESH_0D_Algo :
    public virtual SMESH::_impl_SMESH_0D_Algo,
    public virtual SMESH_Algo
  {
  public:
    virtual ~SMESH_0D_Algo();

    inline ::SMESH::SMESH_0D_Algo_ptr _this() {
      return (::SMESH::SMESH_0D_Algo_ptr) _do_this(::SMESH::SMESH_0D_Algo::_PD_repoId);
    }
  };

  class SMESH_1D_Algo :
    public virtual SMESH::_impl_SMESH_1D_Algo,
    public virtual SMESH_Algo
  {
  public:
    virtual ~SMESH_1D_Algo();

    inline ::SMESH::SMESH_1D_Algo_ptr _this() {
      return (::SMESH::SMESH_1D_Algo_ptr) _do_this(::SMESH::SMESH_1D_Algo::_PD_repoId);
    }
  };

  class SMESH_2D_Algo :
    public virtual SMESH::_impl_SMESH_2D_Algo,
    public virtual SMESH_Algo
  {
  public:
    virtual ~SMESH_2D_Algo();

    inline ::SMESH::SMESH_2D_Algo_ptr _this() {
      return (::SMESH::SMESH_2D_Algo_ptr) _do_this(::SMESH::SMESH_2D_Algo::_PD_repoId);
    }
  };

  class SMESH_3D_Algo :
    public virtual SMESH::_impl_SMESH_3D_Algo,
    public virtual SMESH_Algo
  {
  public:
    virtual ~SMESH_3D_Algo();

    inline ::SMESH::SMESH_3D_Algo_ptr _this() {
      return (::SMESH::SMESH_3D_Algo_ptr) _do_this(::SMESH::SMESH_3D_Algo::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_SMESH
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

inline void operator >>=(SMESH::Dimension _e, cdrStream& s) {
  ::operator>>=((::CORBA::ULong)_e, s);
}

inline void operator <<= (SMESH::Dimension& _e, cdrStream& s) {
  ::CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  if (_0RL_e <= SMESH::DIM_3D) {
    _e = (SMESH::Dimension) _0RL_e;
  }
  else {
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (::CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(::CORBA::Any& _a, SMESH::Dimension _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, SMESH::Dimension& _s);

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

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

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

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

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

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

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

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



inline void
SMESH::SMESH_Hypothesis::_marshalObjRef(::SMESH::SMESH_Hypothesis_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SMESH::SMESH_Algo::_marshalObjRef(::SMESH::SMESH_Algo_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SMESH::SMESH_0D_Algo::_marshalObjRef(::SMESH::SMESH_0D_Algo_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SMESH::SMESH_1D_Algo::_marshalObjRef(::SMESH::SMESH_1D_Algo_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SMESH::SMESH_2D_Algo::_marshalObjRef(::SMESH::SMESH_2D_Algo_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
SMESH::SMESH_3D_Algo::_marshalObjRef(::SMESH::SMESH_3D_Algo_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Hypothesis
#endif

#endif  // __SMESH__Hypothesis_hh__

