// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SMESH__Group_hh__
#define __SMESH__Group_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__Group
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
#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 __SALOMEDS__Attributes_hh_EXTERNAL_GUARD__
#define __SALOMEDS__Attributes_hh_EXTERNAL_GUARD__
#include <SALOMEDS_Attributes.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 __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
#ifndef __SMESH__Mesh_hh_EXTERNAL_GUARD__
#define __SMESH__Mesh_hh_EXTERNAL_GUARD__
#include <SMESH_Mesh.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_mPredicate__
#define __SMESH_mPredicate__

  class Predicate;
  class _objref_Predicate;
  class _impl_Predicate;
  
  typedef _objref_Predicate* Predicate_ptr;
  typedef Predicate_ptr PredicateRef;

  class Predicate_Helper {
  public:
    typedef Predicate_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_Predicate, Predicate_Helper> Predicate_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Predicate,Predicate_Helper > Predicate_out;

#endif

#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

  // interface SMESH_GroupBase
  class SMESH_GroupBase {
  public:
    // Declarations for this interface type.
    typedef SMESH_GroupBase_ptr _ptr_type;
    typedef SMESH_GroupBase_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_GroupBase :
    public virtual SALOME::_objref_GenericObj,
    public virtual _objref_SMESH_IDSource
  {
  public:
    void SetName(const char* name);
    char* GetName();
    ElementType GetType();
    ::CORBA::Long Size();
    ::CORBA::Boolean IsEmpty();
    ::CORBA::Boolean Contains(::CORBA::Long elem_id);
    ::CORBA::Long GetID(::CORBA::Long elem_index);
    long_array* GetListOfID();
    SMESH_Mesh_ptr GetMesh();
    void SetColor(const ::SALOMEDS::Color& theColor);
    SALOMEDS::Color GetColor();
    void SetColorNumber(::CORBA::Long color);
    ::CORBA::Long GetColorNumber();

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

  protected:
    virtual ~_objref_SMESH_GroupBase();

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

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

    friend class SMESH_GroupBase;
  };

  class _pof_SMESH_GroupBase : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_GroupBase() : _OMNI_NS(proxyObjectFactory)(SMESH_GroupBase::_PD_repoId) {}
    virtual ~_pof_SMESH_GroupBase();

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

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

    virtual void SetName(const char* name) = 0;
    virtual char* GetName() = 0;
    virtual ElementType GetType() = 0;
    virtual ::CORBA::Long Size() = 0;
    virtual ::CORBA::Boolean IsEmpty() = 0;
    virtual ::CORBA::Boolean Contains(::CORBA::Long elem_id) = 0;
    virtual ::CORBA::Long GetID(::CORBA::Long elem_index) = 0;
    virtual long_array* GetListOfID() = 0;
    virtual SMESH_Mesh_ptr GetMesh() = 0;
    virtual void SetColor(const ::SALOMEDS::Color& theColor) = 0;
    virtual SALOMEDS::Color GetColor() = 0;
    virtual void SetColorNumber(::CORBA::Long color) = 0;
    virtual ::CORBA::Long GetColorNumber() = 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_GroupBase;

#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

  // interface SMESH_Group
  class SMESH_Group {
  public:
    // Declarations for this interface type.
    typedef SMESH_Group_ptr _ptr_type;
    typedef SMESH_Group_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_Group :
    public virtual _objref_SMESH_GroupBase
  {
  public:
    void Clear();
    ::CORBA::Long Add(const ::SMESH::long_array& elem_ids);
    ::CORBA::Long AddByPredicate(::SMESH::Predicate_ptr thePredicate);
    ::CORBA::Long Remove(const ::SMESH::long_array& elem_ids);
    ::CORBA::Long RemoveByPredicate(::SMESH::Predicate_ptr thePredicate);

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

  protected:
    virtual ~_objref_SMESH_Group();

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

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

    friend class SMESH_Group;
  };

  class _pof_SMESH_Group : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_Group() : _OMNI_NS(proxyObjectFactory)(SMESH_Group::_PD_repoId) {}
    virtual ~_pof_SMESH_Group();

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

  class _impl_SMESH_Group :
    public virtual _impl_SMESH_GroupBase
  {
  public:
    virtual ~_impl_SMESH_Group();

    virtual void Clear() = 0;
    virtual ::CORBA::Long Add(const ::SMESH::long_array& elem_ids) = 0;
    virtual ::CORBA::Long AddByPredicate(::SMESH::Predicate_ptr thePredicate) = 0;
    virtual ::CORBA::Long Remove(const ::SMESH::long_array& elem_ids) = 0;
    virtual ::CORBA::Long RemoveByPredicate(::SMESH::Predicate_ptr thePredicate) = 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_Group;

#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

  // interface SMESH_GroupOnGeom
  class SMESH_GroupOnGeom {
  public:
    // Declarations for this interface type.
    typedef SMESH_GroupOnGeom_ptr _ptr_type;
    typedef SMESH_GroupOnGeom_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_GroupOnGeom :
    public virtual _objref_SMESH_GroupBase
  {
  public:
    GEOM::GEOM_Object_ptr GetShape();

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

  protected:
    virtual ~_objref_SMESH_GroupOnGeom();

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

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

    friend class SMESH_GroupOnGeom;
  };

  class _pof_SMESH_GroupOnGeom : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_SMESH_GroupOnGeom() : _OMNI_NS(proxyObjectFactory)(SMESH_GroupOnGeom::_PD_repoId) {}
    virtual ~_pof_SMESH_GroupOnGeom();

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

  class _impl_SMESH_GroupOnGeom :
    public virtual _impl_SMESH_GroupBase
  {
  public:
    virtual ~_impl_SMESH_GroupOnGeom();

    virtual GEOM::GEOM_Object_ptr GetShape() = 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_GroupOnGeom;

_CORBA_MODULE_END



_CORBA_MODULE POA_SMESH
_CORBA_MODULE_BEG

  class SMESH_GroupBase :
    public virtual SMESH::_impl_SMESH_GroupBase,
    public virtual POA_SALOME::GenericObj,
      public virtual SMESH_IDSource
  {
  public:
    virtual ~SMESH_GroupBase();

    inline ::SMESH::SMESH_GroupBase_ptr _this() {
      return (::SMESH::SMESH_GroupBase_ptr) _do_this(::SMESH::SMESH_GroupBase::_PD_repoId);
    }
  };

  class SMESH_Group :
    public virtual SMESH::_impl_SMESH_Group,
    public virtual SMESH_GroupBase
  {
  public:
    virtual ~SMESH_Group();

    inline ::SMESH::SMESH_Group_ptr _this() {
      return (::SMESH::SMESH_Group_ptr) _do_this(::SMESH::SMESH_Group::_PD_repoId);
    }
  };

  class SMESH_GroupOnGeom :
    public virtual SMESH::_impl_SMESH_GroupOnGeom,
    public virtual SMESH_GroupBase
  {
  public:
    virtual ~SMESH_GroupOnGeom();

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

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

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



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


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


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




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SMESH__Group
#endif

#endif  // __SMESH__Group_hh__

