// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __SALOME__Registry_hh__
#define __SALOME__Registry_hh__

#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB4/CORBA.h>
#endif

#ifndef  USE_stub_in_nt_dll
# define USE_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#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 Registry

_CORBA_MODULE_BEG

  struct Infos {
    typedef _CORBA_ConstrType_Variable_Var<Infos> _var_type;

    
    ::CORBA::String_member name;

    ::CORBA::Long pid;

    ::CORBA::String_member machine;

    ::CORBA::String_member adip;

    ::CORBA::Long uid;

    ::CORBA::String_member pwname;

    ::CORBA::Long tc_start;

    ::CORBA::Long tc_hello;

    ::CORBA::Long tc_end;

    ::CORBA::Long difftime;

    ::CORBA::String_member cdir;

    ::CORBA::Long status;

    ::CORBA::String_member ior;

  

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

  typedef Infos::_var_type Infos_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< Infos,Infos_var > Infos_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Infos;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_AllInfos;

  class AllInfos_var;

  class AllInfos : public _CORBA_Unbounded_Sequence< Infos >  {
  public:
    typedef AllInfos_var _var_type;
    inline AllInfos() {}
    inline AllInfos(const AllInfos& _s)
      : _CORBA_Unbounded_Sequence< Infos > (_s) {}

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

  

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

  class AllInfos_out;

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

  

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

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

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

  

    AllInfos*& _data;

  private:
    AllInfos_out();
    AllInfos_out& operator=(const AllInfos_var&);
  };

#ifndef __Registry_mComponents__
#define __Registry_mComponents__

  class Components;
  class _objref_Components;
  class _impl_Components;
  
  typedef _objref_Components* Components_ptr;
  typedef Components_ptr ComponentsRef;

  class Components_Helper {
  public:
    typedef Components_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_Components, Components_Helper> Components_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Components,Components_Helper > Components_out;

#endif

  // interface Components
  class Components {
  public:
    // Declarations for this interface type.
    typedef Components_ptr _ptr_type;
    typedef Components_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_Components :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    void ping();
    ::CORBA::Long getPID();
    ::CORBA::ULong add(const ::Registry::Infos& lesInfos);
    void remove(::CORBA::ULong id);
    ::CORBA::ULong size();
    AllInfos* getall();
    AllInfos* history();
    void end();
    void hello(::CORBA::ULong id);
    void Shutdown();

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

  protected:
    virtual ~_objref_Components();

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

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

    friend class Components;
  };

  class _pof_Components : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_Components() : _OMNI_NS(proxyObjectFactory)(Components::_PD_repoId) {}
    virtual ~_pof_Components();

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

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

    virtual void ping() = 0;
    virtual ::CORBA::Long getPID() = 0;
    virtual ::CORBA::ULong add(const ::Registry::Infos& lesInfos) = 0;
    virtual void remove(::CORBA::ULong id) = 0;
    virtual ::CORBA::ULong size() = 0;
    virtual AllInfos* getall() = 0;
    virtual AllInfos* history() = 0;
    virtual void end() = 0;
    virtual void hello(::CORBA::ULong id) = 0;
    virtual void Shutdown() = 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_Components;

_CORBA_MODULE_END



_CORBA_MODULE POA_Registry
_CORBA_MODULE_BEG

  class Components :
    public virtual Registry::_impl_Components,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~Components();

    inline ::Registry::Components_ptr _this() {
      return (::Registry::Components_ptr) _do_this(::Registry::Components::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_Registry
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

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

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

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



inline void
Registry::Components::_marshalObjRef(::Registry::Components_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_SALOME__Registry
#endif

#endif  // __SALOME__Registry_hh__

