/*
 *  MICO --- a free CORBA implementation
 *  Copyright (C) 1997-98 Kay Roemer & Arno Puder
 *
 *  This file was automatically generated. DO NOT EDIT!
 */

#if !defined(__COSCONTAINMENT_H__) || defined(MICO_NO_TOPLEVEL_MODULES)
#define __COSCONTAINMENT_H__

#ifndef MICO_NO_TOPLEVEL_MODULES
#include <CORBA.h>
#include <mico/throw.h>
#endif

#ifdef MICO_IN_GENERATED_CODE
#include <mico/CosObjectIdentity.h>
#else
#define MICO_IN_GENERATED_CODE
#include <mico/CosObjectIdentity.h>
#undef MICO_IN_GENERATED_CODE
#endif

#ifdef MICO_IN_GENERATED_CODE
#include <mico/ir_base.h>
#else
#define MICO_IN_GENERATED_CODE
#include <mico/ir_base.h>
#undef MICO_IN_GENERATED_CODE
#endif

#ifdef MICO_IN_GENERATED_CODE
#include <mico/ir.h>
#else
#define MICO_IN_GENERATED_CODE
#include <mico/ir.h>
#undef MICO_IN_GENERATED_CODE
#endif

#ifdef MICO_IN_GENERATED_CODE
#include <mico/CosRelationships.h>
#else
#define MICO_IN_GENERATED_CODE
#include <mico/CosRelationships.h>
#undef MICO_IN_GENERATED_CODE
#endif

#ifdef MICO_IN_GENERATED_CODE
#include <mico/CosGraphs.h>
#else
#define MICO_IN_GENERATED_CODE
#include <mico/CosGraphs.h>
#undef MICO_IN_GENERATED_CODE
#endif

#ifndef MICO_NO_TOPLEVEL_MODULES
MICO_NAMESPACE_DECL CosContainment {
#endif

#if !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE_CosContainment)


class Relationship;
typedef Relationship *Relationship_ptr;
typedef Relationship_ptr RelationshipRef;
typedef ObjVar<Relationship> Relationship_var;
typedef Relationship_var Relationship_out;


// Common definitions for interface Relationship
class Relationship : 
  virtual public ::CosRelationships::Relationship
{
  public:
    virtual ~Relationship();

    #ifdef HAVE_TYPEDEF_OVERLOAD
    typedef Relationship_ptr _ptr_type;
    typedef Relationship_var _var_type;
    #endif

    static Relationship_ptr _narrow( CORBA::Object_ptr obj );
    static Relationship_ptr _narrow( CORBA::AbstractBase_ptr obj );
    static Relationship_ptr _duplicate( Relationship_ptr _obj )
    {
      CORBA::Object::_duplicate (_obj);
      return _obj;
    }

    static Relationship_ptr _nil()
    {
      return 0;
    }

    virtual void *_narrow_helper( const char *repoid );
    static vector<CORBA::Narrow_proto> *_narrow_helpers;
    static bool _narrow_helper2( CORBA::Object_ptr obj );

  protected:
    Relationship() {};
  private:
    Relationship( const Relationship& );
    void operator=( const Relationship& );
};

// Stub for interface Relationship
class Relationship_stub:
  virtual public Relationship,
  virtual public ::CosRelationships::Relationship_stub
{
  public:
    virtual ~Relationship_stub();
  private:
    void operator=( const Relationship_stub& );
};

#ifndef MICO_CONF_NO_POA

class Relationship_stub_clp :
  virtual public Relationship_stub,
  virtual public ::CosRelationships::Relationship_stub_clp
{
  public:
    Relationship_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
    virtual ~Relationship_stub_clp ();
  protected:
    Relationship_stub_clp ();
  private:
    void operator=( const Relationship_stub_clp & );
};

#endif // MICO_CONF_NO_POA

class ContainsRole;
typedef ContainsRole *ContainsRole_ptr;
typedef ContainsRole_ptr ContainsRoleRef;
typedef ObjVar<ContainsRole> ContainsRole_var;
typedef ContainsRole_var ContainsRole_out;


// Common definitions for interface ContainsRole
class ContainsRole : 
  virtual public ::CosGraphs::Role
{
  public:
    virtual ~ContainsRole();

    #ifdef HAVE_TYPEDEF_OVERLOAD
    typedef ContainsRole_ptr _ptr_type;
    typedef ContainsRole_var _var_type;
    #endif

    static ContainsRole_ptr _narrow( CORBA::Object_ptr obj );
    static ContainsRole_ptr _narrow( CORBA::AbstractBase_ptr obj );
    static ContainsRole_ptr _duplicate( ContainsRole_ptr _obj )
    {
      CORBA::Object::_duplicate (_obj);
      return _obj;
    }

    static ContainsRole_ptr _nil()
    {
      return 0;
    }

    virtual void *_narrow_helper( const char *repoid );
    static vector<CORBA::Narrow_proto> *_narrow_helpers;
    static bool _narrow_helper2( CORBA::Object_ptr obj );

  protected:
    ContainsRole() {};
  private:
    ContainsRole( const ContainsRole& );
    void operator=( const ContainsRole& );
};

// Stub for interface ContainsRole
class ContainsRole_stub:
  virtual public ContainsRole,
  virtual public ::CosGraphs::Role_stub
{
  public:
    virtual ~ContainsRole_stub();
  private:
    void operator=( const ContainsRole_stub& );
};

#ifndef MICO_CONF_NO_POA

class ContainsRole_stub_clp :
  virtual public ContainsRole_stub,
  virtual public ::CosGraphs::Role_stub_clp
{
  public:
    ContainsRole_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
    virtual ~ContainsRole_stub_clp ();
  protected:
    ContainsRole_stub_clp ();
  private:
    void operator=( const ContainsRole_stub_clp & );
};

#endif // MICO_CONF_NO_POA

class ContainedInRole;
typedef ContainedInRole *ContainedInRole_ptr;
typedef ContainedInRole_ptr ContainedInRoleRef;
typedef ObjVar<ContainedInRole> ContainedInRole_var;
typedef ContainedInRole_var ContainedInRole_out;


// Common definitions for interface ContainedInRole
class ContainedInRole : 
  virtual public ::CosGraphs::Role
{
  public:
    virtual ~ContainedInRole();

    #ifdef HAVE_TYPEDEF_OVERLOAD
    typedef ContainedInRole_ptr _ptr_type;
    typedef ContainedInRole_var _var_type;
    #endif

    static ContainedInRole_ptr _narrow( CORBA::Object_ptr obj );
    static ContainedInRole_ptr _narrow( CORBA::AbstractBase_ptr obj );
    static ContainedInRole_ptr _duplicate( ContainedInRole_ptr _obj )
    {
      CORBA::Object::_duplicate (_obj);
      return _obj;
    }

    static ContainedInRole_ptr _nil()
    {
      return 0;
    }

    virtual void *_narrow_helper( const char *repoid );
    static vector<CORBA::Narrow_proto> *_narrow_helpers;
    static bool _narrow_helper2( CORBA::Object_ptr obj );

  protected:
    ContainedInRole() {};
  private:
    ContainedInRole( const ContainedInRole& );
    void operator=( const ContainedInRole& );
};

// Stub for interface ContainedInRole
class ContainedInRole_stub:
  virtual public ContainedInRole,
  virtual public ::CosGraphs::Role_stub
{
  public:
    virtual ~ContainedInRole_stub();
  private:
    void operator=( const ContainedInRole_stub& );
};

#ifndef MICO_CONF_NO_POA

class ContainedInRole_stub_clp :
  virtual public ContainedInRole_stub,
  virtual public ::CosGraphs::Role_stub_clp
{
  public:
    ContainedInRole_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
    virtual ~ContainedInRole_stub_clp ();
  protected:
    ContainedInRole_stub_clp ();
  private:
    void operator=( const ContainedInRole_stub_clp & );
};

#endif // MICO_CONF_NO_POA

#endif // !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE_CosContainment)

#ifndef MICO_NO_TOPLEVEL_MODULES

};
#endif



#ifndef MICO_CONF_NO_POA

#ifndef MICO_NO_TOPLEVEL_MODULES
MICO_NAMESPACE_DECL POA_CosContainment {
#endif

#if !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE_POA_CosContainment)


class Relationship : 
  virtual public POA_CosRelationships::Relationship
{
  public:
    virtual ~Relationship ();
    CosContainment::Relationship_ptr _this ();
    bool dispatch (CORBA::StaticServerRequest_ptr);
    virtual void invoke (CORBA::StaticServerRequest_ptr);
    virtual CORBA::Boolean _is_a (const char *);
    virtual CORBA::InterfaceDef_ptr _get_interface ();
    virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);

    virtual void * _narrow_helper (const char *);
    static Relationship * _narrow (PortableServer::Servant);
    virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);

  protected:
    Relationship () {};

  private:
    Relationship (const Relationship &);
    void operator= (const Relationship &);
};

#ifdef HAVE_NAMESPACE

template<class T>
class Relationship_tie : 
  virtual public POA_CosRelationships::Relationship_tie<T>,
  virtual public Relationship
{
  public:
    Relationship_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    Relationship_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    Relationship_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    Relationship_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~Relationship_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    Relationship_tie () {};

  private:
    Relationship_tie (const Relationship_tie<T> &);
    void operator= (const Relationship_tie<T> &);
};

template<class T>
Relationship_tie<T>::~Relationship_tie ()
{
}

template<class T>
PortableServer::POA_ptr
Relationship_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

class ContainsRole : 
  virtual public POA_CosGraphs::Role
{
  public:
    virtual ~ContainsRole ();
    CosContainment::ContainsRole_ptr _this ();
    bool dispatch (CORBA::StaticServerRequest_ptr);
    virtual void invoke (CORBA::StaticServerRequest_ptr);
    virtual CORBA::Boolean _is_a (const char *);
    virtual CORBA::InterfaceDef_ptr _get_interface ();
    virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);

    virtual void * _narrow_helper (const char *);
    static ContainsRole * _narrow (PortableServer::Servant);
    virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);

  protected:
    ContainsRole () {};

  private:
    ContainsRole (const ContainsRole &);
    void operator= (const ContainsRole &);
};

#ifdef HAVE_NAMESPACE

template<class T>
class ContainsRole_tie : 
  virtual public POA_CosGraphs::Role_tie<T>,
  virtual public ContainsRole
{
  public:
    ContainsRole_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    ContainsRole_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    ContainsRole_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    ContainsRole_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~ContainsRole_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    ContainsRole_tie () {};

  private:
    ContainsRole_tie (const ContainsRole_tie<T> &);
    void operator= (const ContainsRole_tie<T> &);
};

template<class T>
ContainsRole_tie<T>::~ContainsRole_tie ()
{
}

template<class T>
PortableServer::POA_ptr
ContainsRole_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

class ContainedInRole : 
  virtual public POA_CosGraphs::Role
{
  public:
    virtual ~ContainedInRole ();
    CosContainment::ContainedInRole_ptr _this ();
    bool dispatch (CORBA::StaticServerRequest_ptr);
    virtual void invoke (CORBA::StaticServerRequest_ptr);
    virtual CORBA::Boolean _is_a (const char *);
    virtual CORBA::InterfaceDef_ptr _get_interface ();
    virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);

    virtual void * _narrow_helper (const char *);
    static ContainedInRole * _narrow (PortableServer::Servant);
    virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);

  protected:
    ContainedInRole () {};

  private:
    ContainedInRole (const ContainedInRole &);
    void operator= (const ContainedInRole &);
};

#ifdef HAVE_NAMESPACE

template<class T>
class ContainedInRole_tie : 
  virtual public POA_CosGraphs::Role_tie<T>,
  virtual public ContainedInRole
{
  public:
    ContainedInRole_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    ContainedInRole_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    ContainedInRole_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    ContainedInRole_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~ContainedInRole_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    ContainedInRole_tie () {};

  private:
    ContainedInRole_tie (const ContainedInRole_tie<T> &);
    void operator= (const ContainedInRole_tie<T> &);
};

template<class T>
ContainedInRole_tie<T>::~ContainedInRole_tie ()
{
}

template<class T>
PortableServer::POA_ptr
ContainedInRole_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

#endif // !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE_POA_CosContainment)

#ifndef MICO_NO_TOPLEVEL_MODULES

};
#endif



#ifndef HAVE_NAMESPACE

template<class T>
class POA_CosContainment_Relationship_tie : 
  virtual public POA_CosRelationships_Relationship_tie<T>,
  virtual public POA_CosContainment::Relationship
{
  public:
    POA_CosContainment_Relationship_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    POA_CosContainment_Relationship_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    POA_CosContainment_Relationship_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    POA_CosContainment_Relationship_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~POA_CosContainment_Relationship_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    POA_CosContainment_Relationship_tie () {};

  private:
    POA_CosContainment_Relationship_tie (const POA_CosContainment_Relationship_tie<T> &);
    void operator= (const POA_CosContainment_Relationship_tie<T> &);
};

template<class T>
POA_CosContainment_Relationship_tie<T>::~POA_CosContainment_Relationship_tie ()
{
}

template<class T>
PortableServer::POA_ptr
POA_CosContainment_Relationship_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

#ifndef HAVE_NAMESPACE

template<class T>
class POA_CosContainment_ContainsRole_tie : 
  virtual public POA_CosGraphs_Role_tie<T>,
  virtual public POA_CosContainment::ContainsRole
{
  public:
    POA_CosContainment_ContainsRole_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    POA_CosContainment_ContainsRole_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    POA_CosContainment_ContainsRole_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    POA_CosContainment_ContainsRole_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~POA_CosContainment_ContainsRole_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    POA_CosContainment_ContainsRole_tie () {};

  private:
    POA_CosContainment_ContainsRole_tie (const POA_CosContainment_ContainsRole_tie<T> &);
    void operator= (const POA_CosContainment_ContainsRole_tie<T> &);
};

template<class T>
POA_CosContainment_ContainsRole_tie<T>::~POA_CosContainment_ContainsRole_tie ()
{
}

template<class T>
PortableServer::POA_ptr
POA_CosContainment_ContainsRole_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

#ifndef HAVE_NAMESPACE

template<class T>
class POA_CosContainment_ContainedInRole_tie : 
  virtual public POA_CosGraphs_Role_tie<T>,
  virtual public POA_CosContainment::ContainedInRole
{
  public:
    POA_CosContainment_ContainedInRole_tie (T &t)
      : POA_Tie_Base<T> (&t, PortableServer::POA::_nil(), FALSE)
    {}
    POA_CosContainment_ContainedInRole_tie (T &t, PortableServer::POA_ptr _poa)
      : POA_Tie_Base<T> (&t, _poa, FALSE)
    {}
    POA_CosContainment_ContainedInRole_tie (T *t, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, PortableServer::POA::_nil(), _rel)
    {}
    POA_CosContainment_ContainedInRole_tie (T *t, PortableServer::POA_ptr _poa, CORBA::Boolean _rel = TRUE)
      : POA_Tie_Base<T> (t, _poa, _rel)
    {}
    virtual ~POA_CosContainment_ContainedInRole_tie ();

    PortableServer::POA_ptr _default_POA ();

  protected:
    POA_CosContainment_ContainedInRole_tie () {};

  private:
    POA_CosContainment_ContainedInRole_tie (const POA_CosContainment_ContainedInRole_tie<T> &);
    void operator= (const POA_CosContainment_ContainedInRole_tie<T> &);
};

template<class T>
POA_CosContainment_ContainedInRole_tie<T>::~POA_CosContainment_ContainedInRole_tie ()
{
}

template<class T>
PortableServer::POA_ptr
POA_CosContainment_ContainedInRole_tie<T>::_default_POA ()
{
  if (!CORBA::is_nil (POA_Tie_Base<T>::poa)) {
    return PortableServer::POA::_duplicate (POA_Tie_Base<T>::poa);
  }
  return PortableServer::ServantBase::_default_POA ();
}

#endif

#endif // MICO_CONF_NO_POA

#if !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE__GLOBAL)

extern CORBA::StaticTypeInfo *_marshaller_CosContainment_Relationship;

extern CORBA::StaticTypeInfo *_marshaller_CosContainment_ContainsRole;

extern CORBA::StaticTypeInfo *_marshaller_CosContainment_ContainedInRole;

#endif // !defined(MICO_NO_TOPLEVEL_MODULES) || defined(MICO_MODULE__GLOBAL)


#if !defined(MICO_NO_TOPLEVEL_MODULES) && !defined(MICO_IN_GENERATED_CODE)
#include <mico/template_impl.h>
#endif

#endif
