// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SMESH__Mesh_hh__
#define __SMESH__Mesh_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__Mesh
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
#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
#ifndef __SALOMEDS__Attributes_hh_EXTERNAL_GUARD__
#define __SALOMEDS__Attributes_hh_EXTERNAL_GUARD__
#include <SALOMEDS_Attributes.hh>
#endif
#ifndef __GEOM__Gen_hh_EXTERNAL_GUARD__
#define __GEOM__Gen_hh_EXTERNAL_GUARD__
#include <GEOM_Gen.hh>
#endif
#ifndef __SALOME__Comm_hh_EXTERNAL_GUARD__
#define __SALOME__Comm_hh_EXTERNAL_GUARD__
#include <SALOME_Comm.hh>
#endif
#ifndef __MED_hh_EXTERNAL_GUARD__
#define __MED_hh_EXTERNAL_GUARD__
#include <MED.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

#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

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ListOfHypothesis;

  class ListOfHypothesis_var;

  class ListOfHypothesis : public _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_Hypothesis, _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper> , SMESH_Hypothesis_Helper >  {
  public:
    typedef ListOfHypothesis_var _var_type;
    inline ListOfHypothesis() {}
    inline ListOfHypothesis(const ListOfHypothesis& _s)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_Hypothesis, _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper> , SMESH_Hypothesis_Helper > (_s) {}

    inline ListOfHypothesis(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_Hypothesis, _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper> , SMESH_Hypothesis_Helper > (_max) {}
    inline ListOfHypothesis(_CORBA_ULong _max, _CORBA_ULong _len, SMESH_Hypothesis_ptr* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_Hypothesis, _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper> , SMESH_Hypothesis_Helper > (_max, _len, _val, _rel) {}

  

    inline ListOfHypothesis& operator = (const ListOfHypothesis& _s) {
      _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_Hypothesis, _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper> , SMESH_Hypothesis_Helper > ::operator=(_s);
      return *this;
    }
  };

  class ListOfHypothesis_out;

  class ListOfHypothesis_var {
  public:
    inline ListOfHypothesis_var() : _pd_seq(0) {}
    inline ListOfHypothesis_var(ListOfHypothesis* _s) : _pd_seq(_s) {}
    inline ListOfHypothesis_var(const ListOfHypothesis_var& _s) {
      if( _s._pd_seq )  _pd_seq = new ListOfHypothesis(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~ListOfHypothesis_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline ListOfHypothesis_var& operator = (ListOfHypothesis* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline ListOfHypothesis_var& operator = (const ListOfHypothesis_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new ListOfHypothesis;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper>  operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

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

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

    inline _CORBA_ObjRef_Element< _objref_SMESH_Hypothesis, SMESH_Hypothesis_Helper>  operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    ListOfHypothesis*& _data;

  private:
    ListOfHypothesis_out();
    ListOfHypothesis_out& operator=(const ListOfHypothesis_var&);
  };

#ifndef __SMESH_mSMESH__GroupBase__
#define __SMESH_mSMESH__GroupBase__

  class SMESH_GroupBase;
  class _objref_SMESH_GroupBase;
  class _impl_SMESH_GroupBase;
  
  typedef _objref_SMESH_GroupBase* SMESH_GroupBase_ptr;
  typedef SMESH_GroupBase_ptr SMESH_GroupBaseRef;

  class SMESH_GroupBase_Helper {
  public:
    typedef SMESH_GroupBase_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_GroupBase, SMESH_GroupBase_Helper> SMESH_GroupBase_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_GroupBase,SMESH_GroupBase_Helper > SMESH_GroupBase_out;

#endif

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ListOfGroups;

  class ListOfGroups_var;

  class ListOfGroups : public _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_GroupBase, _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper> , SMESH_GroupBase_Helper >  {
  public:
    typedef ListOfGroups_var _var_type;
    inline ListOfGroups() {}
    inline ListOfGroups(const ListOfGroups& _s)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_GroupBase, _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper> , SMESH_GroupBase_Helper > (_s) {}

    inline ListOfGroups(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_GroupBase, _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper> , SMESH_GroupBase_Helper > (_max) {}
    inline ListOfGroups(_CORBA_ULong _max, _CORBA_ULong _len, SMESH_GroupBase_ptr* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_GroupBase, _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper> , SMESH_GroupBase_Helper > (_max, _len, _val, _rel) {}

  

    inline ListOfGroups& operator = (const ListOfGroups& _s) {
      _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_GroupBase, _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper> , SMESH_GroupBase_Helper > ::operator=(_s);
      return *this;
    }
  };

  class ListOfGroups_out;

  class ListOfGroups_var {
  public:
    inline ListOfGroups_var() : _pd_seq(0) {}
    inline ListOfGroups_var(ListOfGroups* _s) : _pd_seq(_s) {}
    inline ListOfGroups_var(const ListOfGroups_var& _s) {
      if( _s._pd_seq )  _pd_seq = new ListOfGroups(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~ListOfGroups_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline ListOfGroups_var& operator = (ListOfGroups* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline ListOfGroups_var& operator = (const ListOfGroups_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new ListOfGroups;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper>  operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

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

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

    inline _CORBA_ObjRef_Element< _objref_SMESH_GroupBase, SMESH_GroupBase_Helper>  operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    ListOfGroups*& _data;

  private:
    ListOfGroups_out();
    ListOfGroups_out& operator=(const ListOfGroups_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_double_array;

  class double_array_var;

  class double_array : public _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Double, 8, 8 >  {
  public:
    typedef double_array_var _var_type;
    inline double_array() {}
    inline double_array(const double_array& _s)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Double, 8, 8 > (_s) {}

    inline double_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Double, 8, 8 > (_max) {}
    inline double_array(_CORBA_ULong _max, _CORBA_ULong _len, ::CORBA::Double* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Double, 8, 8 > (_max, _len, _val, _rel) {}

  

    inline double_array& operator = (const double_array& _s) {
      _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Double, 8, 8 > ::operator=(_s);
      return *this;
    }
  };

  class double_array_out;

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

  

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

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

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

  

    double_array*& _data;

  private:
    double_array_out();
    double_array_out& operator=(const double_array_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_long_array;

  class long_array_var;

  class long_array : public _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Long, 4, 4 >  {
  public:
    typedef long_array_var _var_type;
    inline long_array() {}
    inline long_array(const long_array& _s)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Long, 4, 4 > (_s) {}

    inline long_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Long, 4, 4 > (_max) {}
    inline long_array(_CORBA_ULong _max, _CORBA_ULong _len, ::CORBA::Long* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Long, 4, 4 > (_max, _len, _val, _rel) {}

  

    inline long_array& operator = (const long_array& _s) {
      _CORBA_Unbounded_Sequence_w_FixSizeElement< ::CORBA::Long, 4, 4 > ::operator=(_s);
      return *this;
    }
  };

  class long_array_out;

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

  

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

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

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

  

    long_array*& _data;

  private:
    long_array_out();
    long_array_out& operator=(const long_array_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_string_array;

  class string_array_var;

  class string_array : public _CORBA_Unbounded_Sequence_String {
  public:
    typedef string_array_var _var_type;
    inline string_array() {}
    inline string_array(const string_array& _s)
      : _CORBA_Unbounded_Sequence_String(_s) {}

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

  

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

  class string_array_out;

  class string_array_var {
  public:
    inline string_array_var() : _pd_seq(0) {}
    inline string_array_var(string_array* _s) : _pd_seq(_s) {}
    inline string_array_var(const string_array_var& _s) {
      if( _s._pd_seq )  _pd_seq = new string_array(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~string_array_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline string_array_var& operator = (string_array* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline string_array_var& operator = (const string_array_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new string_array;
        *_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 string_array* operator -> () { return _pd_seq; }
    inline const string_array* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
    inline operator string_array& () const { return *_pd_seq; }
#else
    inline operator const string_array& () const { return *_pd_seq; }
    inline operator string_array& () { return *_pd_seq; }
#endif
      
    inline const string_array& in() const { return *_pd_seq; }
    inline string_array&       inout()    { return *_pd_seq; }
    inline string_array*&      out() {
      if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
      return _pd_seq;
    }
    inline string_array* _retn() { string_array* tmp = _pd_seq; _pd_seq = 0; return tmp; }
      
    friend class string_array_out;
    
  private:
    string_array* _pd_seq;
  };

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

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

  

    string_array*& _data;

  private:
    string_array_out();
    string_array_out& operator=(const string_array_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_array_of_long_array;

  class array_of_long_array_var;

  class array_of_long_array : public _CORBA_Unbounded_Sequence< long_array >  {
  public:
    typedef array_of_long_array_var _var_type;
    inline array_of_long_array() {}
    inline array_of_long_array(const array_of_long_array& _s)
      : _CORBA_Unbounded_Sequence< long_array > (_s) {}

    inline array_of_long_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< long_array > (_max) {}
    inline array_of_long_array(_CORBA_ULong _max, _CORBA_ULong _len, long_array* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< long_array > (_max, _len, _val, _rel) {}

  

    inline array_of_long_array& operator = (const array_of_long_array& _s) {
      _CORBA_Unbounded_Sequence< long_array > ::operator=(_s);
      return *this;
    }
  };

  class array_of_long_array_out;

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

  

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

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

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

  

    array_of_long_array*& _data;

  private:
    array_of_long_array_out();
    array_of_long_array_out& operator=(const array_of_long_array_var&);
  };

  enum log_command { ADD_NODE, ADD_EDGE, ADD_TRIANGLE, ADD_QUADRANGLE, ADD_POLYGON, ADD_TETRAHEDRON, ADD_PYRAMID, ADD_PRISM, ADD_HEXAHEDRON, ADD_POLYHEDRON, REMOVE_NODE, REMOVE_ELEMENT, MOVE_NODE, CHANGE_ELEMENT_NODES, CHANGE_POLYHEDRON_NODES, RENUMBER, CLEAR_MESH, ADD_QUADEDGE, ADD_QUADTRIANGLE, ADD_QUADQUADRANGLE, ADD_QUADTETRAHEDRON, ADD_QUADPYRAMID, ADD_QUADPENTAHEDRON, ADD_QUADHEXAHEDRON, ADD_ELEM0D /*, __max_log_command=0xffffffff */ };
  typedef log_command& log_command_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_log_command;

  struct log_block {
    typedef _CORBA_ConstrType_Variable_Var<log_block> _var_type;

    
    ::CORBA::Long commandType;

    ::CORBA::Long number;

    double_array coords;

    long_array indexes;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef log_block::_var_type log_block_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< log_block,log_block_var > log_block_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_log_block;

  struct PointStruct {
    typedef _CORBA_ConstrType_Fix_Var<PointStruct> _var_type;

    
    ::CORBA::Double x;

    ::CORBA::Double y;

    ::CORBA::Double z;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef PointStruct::_var_type PointStruct_var;

  typedef PointStruct& PointStruct_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_PointStruct;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_nodes_array;

  class nodes_array_var;

  class nodes_array : public _CORBA_Unbounded_Sequence< PointStruct >  {
  public:
    typedef nodes_array_var _var_type;
    inline nodes_array() {}
    inline nodes_array(const nodes_array& _s)
      : _CORBA_Unbounded_Sequence< PointStruct > (_s) {}

    inline nodes_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< PointStruct > (_max) {}
    inline nodes_array(_CORBA_ULong _max, _CORBA_ULong _len, PointStruct* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< PointStruct > (_max, _len, _val, _rel) {}

  

    inline nodes_array& operator = (const nodes_array& _s) {
      _CORBA_Unbounded_Sequence< PointStruct > ::operator=(_s);
      return *this;
    }
  };

  class nodes_array_out;

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

  

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

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

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

  

    nodes_array*& _data;

  private:
    nodes_array_out();
    nodes_array_out& operator=(const nodes_array_var&);
  };

  struct DirStruct {
    typedef _CORBA_ConstrType_Fix_Var<DirStruct> _var_type;

    
    PointStruct PS;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef DirStruct::_var_type DirStruct_var;

  typedef DirStruct& DirStruct_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_DirStruct;

  struct AxisStruct {
    typedef _CORBA_ConstrType_Fix_Var<AxisStruct> _var_type;

    
    ::CORBA::Double x;

    ::CORBA::Double y;

    ::CORBA::Double z;

    ::CORBA::Double vx;

    ::CORBA::Double vy;

    ::CORBA::Double vz;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef AxisStruct::_var_type AxisStruct_var;

  typedef AxisStruct& AxisStruct_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_AxisStruct;

  struct NodePosition {
    typedef _CORBA_ConstrType_Variable_Var<NodePosition> _var_type;

    
    ::CORBA::Long shapeID;

    GEOM::shape_type shapeType;

    double_array params;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef NodePosition::_var_type NodePosition_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< NodePosition,NodePosition_var > NodePosition_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_NodePosition;

  enum ElementType { ALL, NODE, EDGE, FACE, VOLUME, ELEM0D /*, __max_ElementType=0xffffffff */ };
  typedef ElementType& ElementType_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ElementType;

  enum GeometryType { Geom_POINT, Geom_EDGE, Geom_TRIANGLE, Geom_QUADRANGLE, Geom_POLYGON, Geom_TETRA, Geom_PYRAMID, Geom_HEXA, Geom_PENTA, Geom_POLYHEDRA /*, __max_GeometryType=0xffffffff */ };
  typedef GeometryType& GeometryType_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_GeometryType;

  enum ElementOrder { ORDER_ANY, ORDER_LINEAR, ORDER_QUADRATIC /*, __max_ElementOrder=0xffffffff */ };
  typedef ElementOrder& ElementOrder_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ElementOrder;

  enum EntityType { Entity_Node, Entity_0D, Entity_Edge, Entity_Quad_Edge, Entity_Triangle, Entity_Quad_Triangle, Entity_Quadrangle, Entity_Quad_Quadrangle, Entity_Polygon, Entity_Quad_Polygon, Entity_Tetra, Entity_Quad_Tetra, Entity_Pyramid, Entity_Quad_Pyramid, Entity_Hexa, Entity_Quad_Hexa, Entity_Penta, Entity_Quad_Penta, Entity_Polyhedra, Entity_Quad_Polyhedra, Entity_Last /*, __max_EntityType=0xffffffff */ };
  typedef EntityType& EntityType_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_EntityType;

  enum Hypothesis_Status { HYP_OK, HYP_MISSING, HYP_CONCURENT, HYP_BAD_PARAMETER, HYP_HIDDEN_ALGO, HYP_HIDING_ALGO, HYP_UNKNOWN_FATAL, HYP_INCOMPATIBLE, HYP_NOTCONFORM, HYP_ALREADY_EXIST, HYP_BAD_DIM, HYP_BAD_SUBSHAPE, HYP_BAD_GEOMETRY, HYP_NEED_SHAPE /*, __max_Hypothesis_Status=0xffffffff */ };
  typedef Hypothesis_Status& Hypothesis_Status_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Hypothesis_Status;

  enum DriverMED_ReadStatus { DRS_OK, DRS_EMPTY, DRS_WARN_RENUMBER, DRS_WARN_SKIP_ELEM, DRS_FAIL /*, __max_DriverMED_ReadStatus=0xffffffff */ };
  typedef DriverMED_ReadStatus& DriverMED_ReadStatus_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_DriverMED_ReadStatus;

  enum MED_VERSION { MED_V2_1, MED_V2_2 /*, __max_MED_VERSION=0xffffffff */ };
  typedef MED_VERSION& MED_VERSION_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_MED_VERSION;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_log_array;

  class log_array_var;

  class log_array : public _CORBA_Unbounded_Sequence< log_block >  {
  public:
    typedef log_array_var _var_type;
    inline log_array() {}
    inline log_array(const log_array& _s)
      : _CORBA_Unbounded_Sequence< log_block > (_s) {}

    inline log_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< log_block > (_max) {}
    inline log_array(_CORBA_ULong _max, _CORBA_ULong _len, log_block* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< log_block > (_max, _len, _val, _rel) {}

  

    inline log_array& operator = (const log_array& _s) {
      _CORBA_Unbounded_Sequence< log_block > ::operator=(_s);
      return *this;
    }
  };

  class log_array_out;

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

  

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

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

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

  

    log_array*& _data;

  private:
    log_array_out();
    log_array_out& operator=(const log_array_var&);
  };

  _CORBA_MODULE_VARINT const ::CORBA::Long EXTRUSION_FLAG_BOUNDARY _init_in_decl_( = 1 );

  _CORBA_MODULE_VARINT const ::CORBA::Long EXTRUSION_FLAG_SEW _init_in_decl_( = 2 );

  struct ElementSubType {
    typedef _CORBA_ConstrType_Fix_Var<ElementSubType> _var_type;

    
    ElementType SMDS_ElementType;

    ::CORBA::Boolean isPoly;

    ::CORBA::Long nbNodesInElement;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef ElementSubType::_var_type ElementSubType_var;

  typedef ElementSubType& ElementSubType_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ElementSubType;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_types_array;

  class types_array_var;

  class types_array : public _CORBA_Unbounded_Sequence< ElementSubType >  {
  public:
    typedef types_array_var _var_type;
    inline types_array() {}
    inline types_array(const types_array& _s)
      : _CORBA_Unbounded_Sequence< ElementSubType > (_s) {}

    inline types_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< ElementSubType > (_max) {}
    inline types_array(_CORBA_ULong _max, _CORBA_ULong _len, ElementSubType* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< ElementSubType > (_max, _len, _val, _rel) {}

  

    inline types_array& operator = (const types_array& _s) {
      _CORBA_Unbounded_Sequence< ElementSubType > ::operator=(_s);
      return *this;
    }
  };

  class types_array_out;

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

  

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

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

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

  

    types_array*& _data;

  private:
    types_array_out();
    types_array_out& operator=(const types_array_var&);
  };

  struct MeshPreviewStruct {
    typedef _CORBA_ConstrType_Variable_Var<MeshPreviewStruct> _var_type;

    
    nodes_array nodesXYZ;

    long_array elementConnectivities;

    types_array elementTypes;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef MeshPreviewStruct::_var_type MeshPreviewStruct_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< MeshPreviewStruct,MeshPreviewStruct_var > MeshPreviewStruct_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_MeshPreviewStruct;

#ifndef __SMESH_mSMESH__IDSource__
#define __SMESH_mSMESH__IDSource__

  class SMESH_IDSource;
  class _objref_SMESH_IDSource;
  class _impl_SMESH_IDSource;
  
  typedef _objref_SMESH_IDSource* SMESH_IDSource_ptr;
  typedef SMESH_IDSource_ptr SMESH_IDSourceRef;

  class SMESH_IDSource_Helper {
  public:
    typedef SMESH_IDSource_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_IDSource, SMESH_IDSource_Helper> SMESH_IDSource_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_IDSource,SMESH_IDSource_Helper > SMESH_IDSource_out;

#endif

  // interface SMESH_IDSource
  class SMESH_IDSource {
  public:
    // Declarations for this interface type.
    typedef SMESH_IDSource_ptr _ptr_type;
    typedef SMESH_IDSource_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_IDSource :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    long_array* GetIDs();
    long_array* GetMeshInfo();

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

  protected:
    virtual ~_objref_SMESH_IDSource();

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

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

    friend class SMESH_IDSource;
  };

  class _pof_SMESH_IDSource : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_IDSource() : _OMNI_NS(proxyObjectFactory)(SMESH_IDSource::_PD_repoId) {}
    virtual ~_pof_SMESH_IDSource();

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

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

    virtual long_array* GetIDs() = 0;
    virtual long_array* GetMeshInfo() = 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_IDSource;

#ifndef __SMESH_mSMESH__Group__
#define __SMESH_mSMESH__Group__

  class SMESH_Group;
  class _objref_SMESH_Group;
  class _impl_SMESH_Group;
  
  typedef _objref_SMESH_Group* SMESH_Group_ptr;
  typedef SMESH_Group_ptr SMESH_GroupRef;

  class SMESH_Group_Helper {
  public:
    typedef SMESH_Group_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_Group, SMESH_Group_Helper> SMESH_Group_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_Group,SMESH_Group_Helper > SMESH_Group_out;

#endif

#ifndef __SMESH_mSMESH__GroupOnGeom__
#define __SMESH_mSMESH__GroupOnGeom__

  class SMESH_GroupOnGeom;
  class _objref_SMESH_GroupOnGeom;
  class _impl_SMESH_GroupOnGeom;
  
  typedef _objref_SMESH_GroupOnGeom* SMESH_GroupOnGeom_ptr;
  typedef SMESH_GroupOnGeom_ptr SMESH_GroupOnGeomRef;

  class SMESH_GroupOnGeom_Helper {
  public:
    typedef SMESH_GroupOnGeom_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_GroupOnGeom, SMESH_GroupOnGeom_Helper> SMESH_GroupOnGeom_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_GroupOnGeom,SMESH_GroupOnGeom_Helper > SMESH_GroupOnGeom_out;

#endif

#ifndef __SMESH_mSMESH__subMesh__
#define __SMESH_mSMESH__subMesh__

  class SMESH_subMesh;
  class _objref_SMESH_subMesh;
  class _impl_SMESH_subMesh;
  
  typedef _objref_SMESH_subMesh* SMESH_subMesh_ptr;
  typedef SMESH_subMesh_ptr SMESH_subMeshRef;

  class SMESH_subMesh_Helper {
  public:
    typedef SMESH_subMesh_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_subMesh, SMESH_subMesh_Helper> SMESH_subMesh_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_subMesh,SMESH_subMesh_Helper > SMESH_subMesh_out;

#endif

#ifndef __SMESH_mSMESH__MeshEditor__
#define __SMESH_mSMESH__MeshEditor__

  class SMESH_MeshEditor;
  class _objref_SMESH_MeshEditor;
  class _impl_SMESH_MeshEditor;
  
  typedef _objref_SMESH_MeshEditor* SMESH_MeshEditor_ptr;
  typedef SMESH_MeshEditor_ptr SMESH_MeshEditorRef;

  class SMESH_MeshEditor_Helper {
  public:
    typedef SMESH_MeshEditor_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_MeshEditor, SMESH_MeshEditor_Helper> SMESH_MeshEditor_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_MeshEditor,SMESH_MeshEditor_Helper > SMESH_MeshEditor_out;

#endif

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_submesh_array;

  class submesh_array_var;

  class submesh_array : public _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_subMesh, _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper> , SMESH_subMesh_Helper >  {
  public:
    typedef submesh_array_var _var_type;
    inline submesh_array() {}
    inline submesh_array(const submesh_array& _s)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_subMesh, _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper> , SMESH_subMesh_Helper > (_s) {}

    inline submesh_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_subMesh, _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper> , SMESH_subMesh_Helper > (_max) {}
    inline submesh_array(_CORBA_ULong _max, _CORBA_ULong _len, SMESH_subMesh_ptr* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_subMesh, _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper> , SMESH_subMesh_Helper > (_max, _len, _val, _rel) {}

  

    inline submesh_array& operator = (const submesh_array& _s) {
      _CORBA_Unbounded_Sequence_ObjRef< _objref_SMESH_subMesh, _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper> , SMESH_subMesh_Helper > ::operator=(_s);
      return *this;
    }
  };

  class submesh_array_out;

  class submesh_array_var {
  public:
    inline submesh_array_var() : _pd_seq(0) {}
    inline submesh_array_var(submesh_array* _s) : _pd_seq(_s) {}
    inline submesh_array_var(const submesh_array_var& _s) {
      if( _s._pd_seq )  _pd_seq = new submesh_array(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~submesh_array_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline submesh_array_var& operator = (submesh_array* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline submesh_array_var& operator = (const submesh_array_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new submesh_array;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper>  operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

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

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

    inline _CORBA_ObjRef_Element< _objref_SMESH_subMesh, SMESH_subMesh_Helper>  operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    submesh_array*& _data;

  private:
    submesh_array_out();
    submesh_array_out& operator=(const submesh_array_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_submesh_array_array;

  class submesh_array_array_var;

  class submesh_array_array : public _CORBA_Unbounded_Sequence< submesh_array >  {
  public:
    typedef submesh_array_array_var _var_type;
    inline submesh_array_array() {}
    inline submesh_array_array(const submesh_array_array& _s)
      : _CORBA_Unbounded_Sequence< submesh_array > (_s) {}

    inline submesh_array_array(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< submesh_array > (_max) {}
    inline submesh_array_array(_CORBA_ULong _max, _CORBA_ULong _len, submesh_array* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< submesh_array > (_max, _len, _val, _rel) {}

  

    inline submesh_array_array& operator = (const submesh_array_array& _s) {
      _CORBA_Unbounded_Sequence< submesh_array > ::operator=(_s);
      return *this;
    }
  };

  class submesh_array_array_out;

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

  

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

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

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

  

    submesh_array_array*& _data;

  private:
    submesh_array_array_out();
    submesh_array_array_out& operator=(const submesh_array_array_var&);
  };

#ifndef __SMESH_mSMESH__Mesh__
#define __SMESH_mSMESH__Mesh__

  class SMESH_Mesh;
  class _objref_SMESH_Mesh;
  class _impl_SMESH_Mesh;
  
  typedef _objref_SMESH_Mesh* SMESH_Mesh_ptr;
  typedef SMESH_Mesh_ptr SMESH_MeshRef;

  class SMESH_Mesh_Helper {
  public:
    typedef SMESH_Mesh_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_Mesh, SMESH_Mesh_Helper> SMESH_Mesh_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_Mesh,SMESH_Mesh_Helper > SMESH_Mesh_out;

#endif

  // interface SMESH_Mesh
  class SMESH_Mesh {
  public:
    // Declarations for this interface type.
    typedef SMESH_Mesh_ptr _ptr_type;
    typedef SMESH_Mesh_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_Mesh :
    public virtual SALOME::_objref_GenericObj,
    public virtual _objref_SMESH_IDSource
  {
  public:
    ::CORBA::Boolean HasShapeToMesh();
    GEOM::GEOM_Object_ptr GetShapeToMesh();
    void Clear();
    void ClearSubMesh(::CORBA::Long ShapeID);
    SMESH_subMesh_ptr GetSubMesh(::GEOM::GEOM_Object_ptr aSubObject, const char* name);
    void RemoveSubMesh(::SMESH::SMESH_subMesh_ptr aSubMesh);
    SMESH_Group_ptr CreateGroup(::SMESH::ElementType elem_type, const char* name);
    SMESH_GroupOnGeom_ptr CreateGroupFromGEOM(::SMESH::ElementType elem_type, const char* name, ::GEOM::GEOM_Object_ptr theGeomObject);
    void RemoveGroup(::SMESH::SMESH_GroupBase_ptr aGroup);
    void RemoveGroupWithContents(::SMESH::SMESH_GroupBase_ptr aGroup);
    ListOfGroups* GetGroups();
    ::CORBA::Long NbGroups();
    SMESH_Group_ptr UnionGroups(::SMESH::SMESH_GroupBase_ptr aGroup1, ::SMESH::SMESH_GroupBase_ptr aGroup2, const char* name);
    SMESH_Group_ptr UnionListOfGroups(const ::SMESH::ListOfGroups& aListOfGroups, const char* name);
    SMESH_Group_ptr IntersectGroups(::SMESH::SMESH_GroupBase_ptr aGroup1, ::SMESH::SMESH_GroupBase_ptr aGroup2, const char* name);
    SMESH_Group_ptr IntersectListOfGroups(const ::SMESH::ListOfGroups& aListOfGroups, const char* name);
    SMESH_Group_ptr CutGroups(::SMESH::SMESH_GroupBase_ptr aMainGroup, ::SMESH::SMESH_GroupBase_ptr aToolGroup, const char* name);
    SMESH_Group_ptr CutListOfGroups(const ::SMESH::ListOfGroups& aMainGroups, const ::SMESH::ListOfGroups& aToolGroups, const char* name);
    SMESH_Group_ptr CreateDimGroup(const ::SMESH::ListOfGroups& aListOfGroups, ::SMESH::ElementType anElemType, const char* name);
    SMESH_Group_ptr ConvertToStandalone(::SMESH::SMESH_GroupOnGeom_ptr theGeomGroup);
    Hypothesis_Status AddHypothesis(::GEOM::GEOM_Object_ptr aSubObject, ::SMESH::SMESH_Hypothesis_ptr anHyp);
    Hypothesis_Status RemoveHypothesis(::GEOM::GEOM_Object_ptr aSubObject, ::SMESH::SMESH_Hypothesis_ptr anHyp);
    ListOfHypothesis* GetHypothesisList(::GEOM::GEOM_Object_ptr aSubObject);
    log_array* GetLog(::CORBA::Boolean clearAfterGet);
    void ClearLog();
    void SetAutoColor(::CORBA::Boolean theAutoColor);
    ::CORBA::Boolean GetAutoColor();
    ::CORBA::Long GetId();
    ::CORBA::Long GetStudyId();
    SMESH_MeshEditor_ptr GetMeshEditor();
    SMESH_MeshEditor_ptr GetMeshEditPreviewer();
    ::CORBA::Boolean HasDuplicatedGroupNamesMED();
    void ExportToMEDX(const char* file, ::CORBA::Boolean auto_groups, ::SMESH::MED_VERSION theVersion, ::CORBA::Boolean overwrite);
    void ExportToMED(const char* file, ::CORBA::Boolean auto_groups, ::SMESH::MED_VERSION theVersion);
    void ExportMED(const char* file, ::CORBA::Boolean auto_groups);
    char* GetVersionString(::SMESH::MED_VERSION version, ::CORBA::Short nbDigits);
    void ExportDAT(const char* file);
    void ExportUNV(const char* file);
    void ExportSTL(const char* file, ::CORBA::Boolean isascii);
    SALOME_MED::MESH_ptr GetMEDMesh();
    ::CORBA::Long NbNodes();
    ::CORBA::Long NbElements();
    ::CORBA::Long Nb0DElements();
    ::CORBA::Long NbEdges();
    ::CORBA::Long NbEdgesOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbFaces();
    ::CORBA::Long NbFacesOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbTriangles();
    ::CORBA::Long NbTrianglesOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbQuadrangles();
    ::CORBA::Long NbQuadranglesOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbPolygons();
    ::CORBA::Long NbVolumes();
    ::CORBA::Long NbVolumesOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbTetras();
    ::CORBA::Long NbTetrasOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbHexas();
    ::CORBA::Long NbHexasOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbPyramids();
    ::CORBA::Long NbPyramidsOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbPrisms();
    ::CORBA::Long NbPrismsOfOrder(::SMESH::ElementOrder order);
    ::CORBA::Long NbPolyhedrons();
    ::CORBA::Long NbSubMesh();
    long_array* GetElementsId();
    long_array* GetElementsByType(::SMESH::ElementType theType);
    long_array* GetNodesId();
    ElementType GetElementType(::CORBA::Long id, ::CORBA::Boolean iselem);
    EntityType GetElementGeomType(::CORBA::Long id);
    long_array* GetSubMeshElementsId(::CORBA::Long ShapeID);
    long_array* GetSubMeshNodesId(::CORBA::Long ShapeID, ::CORBA::Boolean all);
    ElementType GetSubMeshElementType(::CORBA::Long ShapeID);
    submesh_array_array* GetMeshOrder();
    ::CORBA::Boolean SetMeshOrder(const ::SMESH::submesh_array_array& theSubMeshArray);
    char* Dump();
    ::CORBA::LongLong GetMeshPtr();
    double_array* GetNodeXYZ(::CORBA::Long id);
    long_array* GetNodeInverseElements(::CORBA::Long id);
    NodePosition* GetNodePosition(::CORBA::Long NodeID);
    ::CORBA::Long GetShapeID(::CORBA::Long id);
    ::CORBA::Long GetShapeIDForElem(::CORBA::Long id);
    ::CORBA::Long GetElemNbNodes(::CORBA::Long id);
    long_array* GetElemNodes(::CORBA::Long id);
    ::CORBA::Long GetElemNode(::CORBA::Long id, ::CORBA::Long index);
    ::CORBA::Boolean IsMediumNode(::CORBA::Long ide, ::CORBA::Long idn);
    ::CORBA::Boolean IsMediumNodeOfAnyElem(::CORBA::Long idn, ::SMESH::ElementType elem_type);
    ::CORBA::Long ElemNbEdges(::CORBA::Long id);
    ::CORBA::Long ElemNbFaces(::CORBA::Long id);
    long_array* GetElemFaceNodes(::CORBA::Long elemId, ::CORBA::Short faceIndex);
    ::CORBA::Long FindElementByNodes(const ::SMESH::long_array& nodes);
    ::CORBA::Boolean IsPoly(::CORBA::Long id);
    ::CORBA::Boolean IsQuadratic(::CORBA::Long id);
    double_array* BaryCenter(::CORBA::Long id);
    SALOME_MED::MedFileInfo* GetMEDFileInfo();
    void SetParameters(const char* theParameters);
    char* GetParameters();
    string_array* GetLastParameters();

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

  protected:
    virtual ~_objref_SMESH_Mesh();

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

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

    friend class SMESH_Mesh;
  };

  class _pof_SMESH_Mesh : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_Mesh() : _OMNI_NS(proxyObjectFactory)(SMESH_Mesh::_PD_repoId) {}
    virtual ~_pof_SMESH_Mesh();

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

  class _impl_SMESH_Mesh :
    public virtual SALOME::_impl_GenericObj,
    public virtual _impl_SMESH_IDSource
  {
  public:
    virtual ~_impl_SMESH_Mesh();

    virtual ::CORBA::Boolean HasShapeToMesh() = 0;
    virtual GEOM::GEOM_Object_ptr GetShapeToMesh() = 0;
    virtual void Clear() = 0;
    virtual void ClearSubMesh(::CORBA::Long ShapeID) = 0;
    virtual SMESH_subMesh_ptr GetSubMesh(::GEOM::GEOM_Object_ptr aSubObject, const char* name) = 0;
    virtual void RemoveSubMesh(::SMESH::SMESH_subMesh_ptr aSubMesh) = 0;
    virtual SMESH_Group_ptr CreateGroup(::SMESH::ElementType elem_type, const char* name) = 0;
    virtual SMESH_GroupOnGeom_ptr CreateGroupFromGEOM(::SMESH::ElementType elem_type, const char* name, ::GEOM::GEOM_Object_ptr theGeomObject) = 0;
    virtual void RemoveGroup(::SMESH::SMESH_GroupBase_ptr aGroup) = 0;
    virtual void RemoveGroupWithContents(::SMESH::SMESH_GroupBase_ptr aGroup) = 0;
    virtual ListOfGroups* GetGroups() = 0;
    virtual ::CORBA::Long NbGroups() = 0;
    virtual SMESH_Group_ptr UnionGroups(::SMESH::SMESH_GroupBase_ptr aGroup1, ::SMESH::SMESH_GroupBase_ptr aGroup2, const char* name) = 0;
    virtual SMESH_Group_ptr UnionListOfGroups(const ::SMESH::ListOfGroups& aListOfGroups, const char* name) = 0;
    virtual SMESH_Group_ptr IntersectGroups(::SMESH::SMESH_GroupBase_ptr aGroup1, ::SMESH::SMESH_GroupBase_ptr aGroup2, const char* name) = 0;
    virtual SMESH_Group_ptr IntersectListOfGroups(const ::SMESH::ListOfGroups& aListOfGroups, const char* name) = 0;
    virtual SMESH_Group_ptr CutGroups(::SMESH::SMESH_GroupBase_ptr aMainGroup, ::SMESH::SMESH_GroupBase_ptr aToolGroup, const char* name) = 0;
    virtual SMESH_Group_ptr CutListOfGroups(const ::SMESH::ListOfGroups& aMainGroups, const ::SMESH::ListOfGroups& aToolGroups, const char* name) = 0;
    virtual SMESH_Group_ptr CreateDimGroup(const ::SMESH::ListOfGroups& aListOfGroups, ::SMESH::ElementType anElemType, const char* name) = 0;
    virtual SMESH_Group_ptr ConvertToStandalone(::SMESH::SMESH_GroupOnGeom_ptr theGeomGroup) = 0;
    virtual Hypothesis_Status AddHypothesis(::GEOM::GEOM_Object_ptr aSubObject, ::SMESH::SMESH_Hypothesis_ptr anHyp) = 0;
    virtual Hypothesis_Status RemoveHypothesis(::GEOM::GEOM_Object_ptr aSubObject, ::SMESH::SMESH_Hypothesis_ptr anHyp) = 0;
    virtual ListOfHypothesis* GetHypothesisList(::GEOM::GEOM_Object_ptr aSubObject) = 0;
    virtual log_array* GetLog(::CORBA::Boolean clearAfterGet) = 0;
    virtual void ClearLog() = 0;
    virtual void SetAutoColor(::CORBA::Boolean theAutoColor) = 0;
    virtual ::CORBA::Boolean GetAutoColor() = 0;
    virtual ::CORBA::Long GetId() = 0;
    virtual ::CORBA::Long GetStudyId() = 0;
    virtual SMESH_MeshEditor_ptr GetMeshEditor() = 0;
    virtual SMESH_MeshEditor_ptr GetMeshEditPreviewer() = 0;
    virtual ::CORBA::Boolean HasDuplicatedGroupNamesMED() = 0;
    virtual void ExportToMEDX(const char* file, ::CORBA::Boolean auto_groups, ::SMESH::MED_VERSION theVersion, ::CORBA::Boolean overwrite) = 0;
    virtual void ExportToMED(const char* file, ::CORBA::Boolean auto_groups, ::SMESH::MED_VERSION theVersion) = 0;
    virtual void ExportMED(const char* file, ::CORBA::Boolean auto_groups) = 0;
    virtual char* GetVersionString(::SMESH::MED_VERSION version, ::CORBA::Short nbDigits) = 0;
    virtual void ExportDAT(const char* file) = 0;
    virtual void ExportUNV(const char* file) = 0;
    virtual void ExportSTL(const char* file, ::CORBA::Boolean isascii) = 0;
    virtual SALOME_MED::MESH_ptr GetMEDMesh() = 0;
    virtual ::CORBA::Long NbNodes() = 0;
    virtual ::CORBA::Long NbElements() = 0;
    virtual ::CORBA::Long Nb0DElements() = 0;
    virtual ::CORBA::Long NbEdges() = 0;
    virtual ::CORBA::Long NbEdgesOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbFaces() = 0;
    virtual ::CORBA::Long NbFacesOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbTriangles() = 0;
    virtual ::CORBA::Long NbTrianglesOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbQuadrangles() = 0;
    virtual ::CORBA::Long NbQuadranglesOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbPolygons() = 0;
    virtual ::CORBA::Long NbVolumes() = 0;
    virtual ::CORBA::Long NbVolumesOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbTetras() = 0;
    virtual ::CORBA::Long NbTetrasOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbHexas() = 0;
    virtual ::CORBA::Long NbHexasOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbPyramids() = 0;
    virtual ::CORBA::Long NbPyramidsOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbPrisms() = 0;
    virtual ::CORBA::Long NbPrismsOfOrder(::SMESH::ElementOrder order) = 0;
    virtual ::CORBA::Long NbPolyhedrons() = 0;
    virtual ::CORBA::Long NbSubMesh() = 0;
    virtual long_array* GetElementsId() = 0;
    virtual long_array* GetElementsByType(::SMESH::ElementType theType) = 0;
    virtual long_array* GetNodesId() = 0;
    virtual ElementType GetElementType(::CORBA::Long id, ::CORBA::Boolean iselem) = 0;
    virtual EntityType GetElementGeomType(::CORBA::Long id) = 0;
    virtual long_array* GetSubMeshElementsId(::CORBA::Long ShapeID) = 0;
    virtual long_array* GetSubMeshNodesId(::CORBA::Long ShapeID, ::CORBA::Boolean all) = 0;
    virtual ElementType GetSubMeshElementType(::CORBA::Long ShapeID) = 0;
    virtual submesh_array_array* GetMeshOrder() = 0;
    virtual ::CORBA::Boolean SetMeshOrder(const ::SMESH::submesh_array_array& theSubMeshArray) = 0;
    virtual char* Dump() = 0;
    virtual ::CORBA::LongLong GetMeshPtr() = 0;
    virtual double_array* GetNodeXYZ(::CORBA::Long id) = 0;
    virtual long_array* GetNodeInverseElements(::CORBA::Long id) = 0;
    virtual NodePosition* GetNodePosition(::CORBA::Long NodeID) = 0;
    virtual ::CORBA::Long GetShapeID(::CORBA::Long id) = 0;
    virtual ::CORBA::Long GetShapeIDForElem(::CORBA::Long id) = 0;
    virtual ::CORBA::Long GetElemNbNodes(::CORBA::Long id) = 0;
    virtual long_array* GetElemNodes(::CORBA::Long id) = 0;
    virtual ::CORBA::Long GetElemNode(::CORBA::Long id, ::CORBA::Long index) = 0;
    virtual ::CORBA::Boolean IsMediumNode(::CORBA::Long ide, ::CORBA::Long idn) = 0;
    virtual ::CORBA::Boolean IsMediumNodeOfAnyElem(::CORBA::Long idn, ::SMESH::ElementType elem_type) = 0;
    virtual ::CORBA::Long ElemNbEdges(::CORBA::Long id) = 0;
    virtual ::CORBA::Long ElemNbFaces(::CORBA::Long id) = 0;
    virtual long_array* GetElemFaceNodes(::CORBA::Long elemId, ::CORBA::Short faceIndex) = 0;
    virtual ::CORBA::Long FindElementByNodes(const ::SMESH::long_array& nodes) = 0;
    virtual ::CORBA::Boolean IsPoly(::CORBA::Long id) = 0;
    virtual ::CORBA::Boolean IsQuadratic(::CORBA::Long id) = 0;
    virtual double_array* BaryCenter(::CORBA::Long id) = 0;
    virtual SALOME_MED::MedFileInfo* GetMEDFileInfo() = 0;
    virtual void SetParameters(const char* theParameters) = 0;
    virtual char* GetParameters() = 0;
    virtual string_array* GetLastParameters() = 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_Mesh;

#ifndef __SMESH_mSMESH__subMesh__
#define __SMESH_mSMESH__subMesh__

  class SMESH_subMesh;
  class _objref_SMESH_subMesh;
  class _impl_SMESH_subMesh;
  
  typedef _objref_SMESH_subMesh* SMESH_subMesh_ptr;
  typedef SMESH_subMesh_ptr SMESH_subMeshRef;

  class SMESH_subMesh_Helper {
  public:
    typedef SMESH_subMesh_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_subMesh, SMESH_subMesh_Helper> SMESH_subMesh_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_SMESH_subMesh,SMESH_subMesh_Helper > SMESH_subMesh_out;

#endif

  // interface SMESH_subMesh
  class SMESH_subMesh {
  public:
    // Declarations for this interface type.
    typedef SMESH_subMesh_ptr _ptr_type;
    typedef SMESH_subMesh_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_subMesh :
    public virtual SALOME::_objref_GenericObj,
    public virtual _objref_SMESH_IDSource
  {
  public:
    ::CORBA::Long GetNumberOfElements();
    ::CORBA::Long GetNumberOfNodes(::CORBA::Boolean all);
    long_array* GetElementsId();
    long_array* GetElementsByType(::SMESH::ElementType theType);
    ElementType GetElementType(::CORBA::Long id, ::CORBA::Boolean iselem);
    long_array* GetNodesId();
    GEOM::GEOM_Object_ptr GetSubShape();
    SMESH_Mesh_ptr GetFather();
    ::CORBA::Long GetId();
    SALOME_MED::FAMILY_ptr GetFamily();

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

  protected:
    virtual ~_objref_SMESH_subMesh();

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

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

    friend class SMESH_subMesh;
  };

  class _pof_SMESH_subMesh : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_subMesh() : _OMNI_NS(proxyObjectFactory)(SMESH_subMesh::_PD_repoId) {}
    virtual ~_pof_SMESH_subMesh();

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

  class _impl_SMESH_subMesh :
    public virtual SALOME::_impl_GenericObj,
    public virtual _impl_SMESH_IDSource
  {
  public:
    virtual ~_impl_SMESH_subMesh();

    virtual ::CORBA::Long GetNumberOfElements() = 0;
    virtual ::CORBA::Long GetNumberOfNodes(::CORBA::Boolean all) = 0;
    virtual long_array* GetElementsId() = 0;
    virtual long_array* GetElementsByType(::SMESH::ElementType theType) = 0;
    virtual ElementType GetElementType(::CORBA::Long id, ::CORBA::Boolean iselem) = 0;
    virtual long_array* GetNodesId() = 0;
    virtual GEOM::GEOM_Object_ptr GetSubShape() = 0;
    virtual SMESH_Mesh_ptr GetFather() = 0;
    virtual ::CORBA::Long GetId() = 0;
    virtual SALOME_MED::FAMILY_ptr GetFamily() = 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_subMesh;

_CORBA_MODULE_END



_CORBA_MODULE POA_SMESH
_CORBA_MODULE_BEG

  class SMESH_IDSource :
    public virtual SMESH::_impl_SMESH_IDSource,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~SMESH_IDSource();

    inline ::SMESH::SMESH_IDSource_ptr _this() {
      return (::SMESH::SMESH_IDSource_ptr) _do_this(::SMESH::SMESH_IDSource::_PD_repoId);
    }
  };

  class SMESH_Mesh :
    public virtual SMESH::_impl_SMESH_Mesh,
    public virtual POA_SALOME::GenericObj,
      public virtual SMESH_IDSource
  {
  public:
    virtual ~SMESH_Mesh();

    inline ::SMESH::SMESH_Mesh_ptr _this() {
      return (::SMESH::SMESH_Mesh_ptr) _do_this(::SMESH::SMESH_Mesh::_PD_repoId);
    }
  };

  class SMESH_subMesh :
    public virtual SMESH::_impl_SMESH_subMesh,
    public virtual POA_SALOME::GenericObj,
      public virtual SMESH_IDSource
  {
  public:
    virtual ~SMESH_subMesh();

    inline ::SMESH::SMESH_subMesh_ptr _this() {
      return (::SMESH::SMESH_subMesh_ptr) _do_this(::SMESH::SMESH_subMesh::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_SMESH
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



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


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


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




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Mesh
#endif

#endif  // __SMESH__Mesh_hh__

