// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __MULTIPR_hh__
#define __MULTIPR_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_MULTIPR
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_MULTIPR
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_MULTIPR
#endif



#ifndef __SALOME__Exception_hh_EXTERNAL_GUARD__
#define __SALOME__Exception_hh_EXTERNAL_GUARD__
#include <SALOME_Exception.hh>
#endif
#ifndef __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#define __SALOME__GenericObj_hh_EXTERNAL_GUARD__
#include <SALOME_GenericObj.hh>
#endif
#ifndef __SALOMEDS_hh_EXTERNAL_GUARD__
#define __SALOMEDS_hh_EXTERNAL_GUARD__
#include <SALOMEDS.hh>
#endif
#ifndef __SALOME__PyNode_hh_EXTERNAL_GUARD__
#define __SALOME__PyNode_hh_EXTERNAL_GUARD__
#include <SALOME_PyNode.hh>
#endif
#ifndef __SALOME__Component_hh_EXTERNAL_GUARD__
#define __SALOME__Component_hh_EXTERNAL_GUARD__
#include <SALOME_Component.hh>
#endif



#ifdef USE_stub_in_nt_dll
# ifndef USE_core_stub_in_nt_dll
#  define USE_core_stub_in_nt_dll
# endif
# ifndef USE_dyn_stub_in_nt_dll
#  define USE_dyn_stub_in_nt_dll
# endif
#endif

#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef  USE_core_stub_in_nt_dll
#  define _core_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _core_attr
# endif
#endif

#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef  USE_dyn_stub_in_nt_dll
#  define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _dyn_attr
# endif
#endif





_CORBA_MODULE MULTIPR_ORB

_CORBA_MODULE_BEG

  _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&);
  };

#ifndef __MULTIPR__ORB_mMULTIPR__Obj__
#define __MULTIPR__ORB_mMULTIPR__Obj__

  class MULTIPR_Obj;
  class _objref_MULTIPR_Obj;
  class _impl_MULTIPR_Obj;
  
  typedef _objref_MULTIPR_Obj* MULTIPR_Obj_ptr;
  typedef MULTIPR_Obj_ptr MULTIPR_ObjRef;

  class MULTIPR_Obj_Helper {
  public:
    typedef MULTIPR_Obj_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_MULTIPR_Obj, MULTIPR_Obj_Helper> MULTIPR_Obj_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_MULTIPR_Obj,MULTIPR_Obj_Helper > MULTIPR_Obj_out;

#endif

  // interface MULTIPR_Obj
  class MULTIPR_Obj {
  public:
    // Declarations for this interface type.
    typedef MULTIPR_Obj_ptr _ptr_type;
    typedef MULTIPR_Obj_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_MULTIPR_Obj :
    public virtual SALOME::_objref_GenericObj
  {
  public:
    void reset();
    ::CORBA::Boolean isValidSequentialMEDFile();
    ::CORBA::Boolean isValidDistributedMEDFile();
    char* getFilename();
    char* getSeqFilename();
    void setMesh(const char* meshName);
    void setBoxing(::CORBA::Long boxing);
    string_array* getMeshes();
    string_array* getFields(const char* pPartList);
    ::CORBA::Long getTimeStamps(const char* pPartList, const char* fieldName);
    void getFieldMinMax(const char* pPartName, const char* pFieldName, ::CORBA::Float& pMin, ::CORBA::Float& pMax);
    string_array* getParts();
    char* getPartInfo(const char* partName);
    string_array* partitionneDomaine();
    string_array* partitionneGroupe(const char* partName, ::CORBA::Long nbParts, ::CORBA::Long partitionner);
    string_array* decimePartition(const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams);
    char* evalDecimationParams(const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams);
    void removeParts(const char* prefixPartName);
    char* getMEDInfo(const char* partName);
    void save(const char* path);
    ::CORBA::Long getSaveProgress();
    void resetSaveProgress();

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

  protected:
    virtual ~_objref_MULTIPR_Obj();

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

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

    friend class MULTIPR_Obj;
  };

  class _pof_MULTIPR_Obj : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_MULTIPR_Obj() : _OMNI_NS(proxyObjectFactory)(MULTIPR_Obj::_PD_repoId) {}
    virtual ~_pof_MULTIPR_Obj();

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

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

    virtual void reset() = 0;
    virtual ::CORBA::Boolean isValidSequentialMEDFile() = 0;
    virtual ::CORBA::Boolean isValidDistributedMEDFile() = 0;
    virtual char* getFilename() = 0;
    virtual char* getSeqFilename() = 0;
    virtual void setMesh(const char* meshName) = 0;
    virtual void setBoxing(::CORBA::Long boxing) = 0;
    virtual string_array* getMeshes() = 0;
    virtual string_array* getFields(const char* pPartList) = 0;
    virtual ::CORBA::Long getTimeStamps(const char* pPartList, const char* fieldName) = 0;
    virtual void getFieldMinMax(const char* pPartName, const char* pFieldName, ::CORBA::Float& pMin, ::CORBA::Float& pMax) = 0;
    virtual string_array* getParts() = 0;
    virtual char* getPartInfo(const char* partName) = 0;
    virtual string_array* partitionneDomaine() = 0;
    virtual string_array* partitionneGroupe(const char* partName, ::CORBA::Long nbParts, ::CORBA::Long partitionner) = 0;
    virtual string_array* decimePartition(const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams) = 0;
    virtual char* evalDecimationParams(const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams) = 0;
    virtual void removeParts(const char* prefixPartName) = 0;
    virtual char* getMEDInfo(const char* partName) = 0;
    virtual void save(const char* path) = 0;
    virtual ::CORBA::Long getSaveProgress() = 0;
    virtual void resetSaveProgress() = 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_MULTIPR_Obj;

#ifndef __MULTIPR__ORB_mMULTIPR__Gen__
#define __MULTIPR__ORB_mMULTIPR__Gen__

  class MULTIPR_Gen;
  class _objref_MULTIPR_Gen;
  class _impl_MULTIPR_Gen;
  
  typedef _objref_MULTIPR_Gen* MULTIPR_Gen_ptr;
  typedef MULTIPR_Gen_ptr MULTIPR_GenRef;

  class MULTIPR_Gen_Helper {
  public:
    typedef MULTIPR_Gen_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_MULTIPR_Gen, MULTIPR_Gen_Helper> MULTIPR_Gen_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_MULTIPR_Gen,MULTIPR_Gen_Helper > MULTIPR_Gen_out;

#endif

  // interface MULTIPR_Gen
  class MULTIPR_Gen {
  public:
    // Declarations for this interface type.
    typedef MULTIPR_Gen_ptr _ptr_type;
    typedef MULTIPR_Gen_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_MULTIPR_Gen :
    public virtual Engines::_objref_Component,
    public virtual SALOMEDS::_objref_Driver
  {
  public:
    char* getVersion();
    void partitionneDomaine(const char* medFilename, const char* meshName);
    void partitionneGroupe(const char* medFilename, const char* partName, ::CORBA::Long nbParts, ::CORBA::Long partitionner);
    void decimePartition(const char* medFilename, const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams);
    MULTIPR_Obj_ptr getObject(const char* medFilename);
    void SetCurrentStudy(::SALOMEDS::Study_ptr theStudy);
    SALOMEDS::Study_ptr GetCurrentStudy();

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

  protected:
    virtual ~_objref_MULTIPR_Gen();

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

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

    friend class MULTIPR_Gen;
  };

  class _pof_MULTIPR_Gen : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_MULTIPR_Gen() : _OMNI_NS(proxyObjectFactory)(MULTIPR_Gen::_PD_repoId) {}
    virtual ~_pof_MULTIPR_Gen();

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

  class _impl_MULTIPR_Gen :
    public virtual Engines::_impl_Component,
    public virtual SALOMEDS::_impl_Driver
  {
  public:
    virtual ~_impl_MULTIPR_Gen();

    virtual char* getVersion() = 0;
    virtual void partitionneDomaine(const char* medFilename, const char* meshName) = 0;
    virtual void partitionneGroupe(const char* medFilename, const char* partName, ::CORBA::Long nbParts, ::CORBA::Long partitionner) = 0;
    virtual void decimePartition(const char* medFilename, const char* partName, const char* fieldName, ::CORBA::Long fieldIt, const char* filterName, const char* filterParams) = 0;
    virtual MULTIPR_Obj_ptr getObject(const char* medFilename) = 0;
    virtual void SetCurrentStudy(::SALOMEDS::Study_ptr theStudy) = 0;
    virtual SALOMEDS::Study_ptr GetCurrentStudy() = 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_MULTIPR_Gen;

_CORBA_MODULE_END



_CORBA_MODULE POA_MULTIPR_ORB
_CORBA_MODULE_BEG

  class MULTIPR_Obj :
    public virtual MULTIPR_ORB::_impl_MULTIPR_Obj,
    public virtual POA_SALOME::GenericObj
  {
  public:
    virtual ~MULTIPR_Obj();

    inline ::MULTIPR_ORB::MULTIPR_Obj_ptr _this() {
      return (::MULTIPR_ORB::MULTIPR_Obj_ptr) _do_this(::MULTIPR_ORB::MULTIPR_Obj::_PD_repoId);
    }
  };

  class MULTIPR_Gen :
    public virtual MULTIPR_ORB::_impl_MULTIPR_Gen,
    public virtual POA_Engines::Component,
      public virtual POA_SALOMEDS::Driver
  {
  public:
    virtual ~MULTIPR_Gen();

    inline ::MULTIPR_ORB::MULTIPR_Gen_ptr _this() {
      return (::MULTIPR_ORB::MULTIPR_Gen_ptr) _do_this(::MULTIPR_ORB::MULTIPR_Gen::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_MULTIPR_ORB
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

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

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

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



inline void
MULTIPR_ORB::MULTIPR_Obj::_marshalObjRef(::MULTIPR_ORB::MULTIPR_Obj_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
MULTIPR_ORB::MULTIPR_Gen::_marshalObjRef(::MULTIPR_ORB::MULTIPR_Gen_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_MULTIPR
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_MULTIPR
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_MULTIPR
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_MULTIPR
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_MULTIPR
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_MULTIPR
#endif

#endif  // __MULTIPR_hh__

