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

#if !defined(__COSGRAPHSEXTENSION_H__) || defined(MICO_NO_TOPLEVEL_MODULES)
#define __COSGRAPHSEXTENSION_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 CosGraphsExtension {
#endif

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


class GenericCriteriaFactory;
typedef GenericCriteriaFactory *GenericCriteriaFactory_ptr;
typedef GenericCriteriaFactory_ptr GenericCriteriaFactoryRef;
typedef ObjVar<GenericCriteriaFactory> GenericCriteriaFactory_var;
typedef GenericCriteriaFactory_var GenericCriteriaFactory_out;


// Common definitions for interface GenericCriteriaFactory
class GenericCriteriaFactory : 
  virtual public CORBA::Object
{
  public:
    virtual ~GenericCriteriaFactory();

    #ifdef HAVE_TYPEDEF_OVERLOAD
    typedef GenericCriteriaFactory_ptr _ptr_type;
    typedef GenericCriteriaFactory_var _var_type;
    #endif

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

    static GenericCriteriaFactory_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 );

    virtual CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value ) = 0;

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

// Stub for interface GenericCriteriaFactory
class GenericCriteriaFactory_stub:
  virtual public GenericCriteriaFactory
{
  public:
    virtual ~GenericCriteriaFactory_stub();
    CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value );

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

#ifndef MICO_CONF_NO_POA

class GenericCriteriaFactory_stub_clp :
  virtual public GenericCriteriaFactory_stub,
  virtual public PortableServer::StubBase
{
  public:
    GenericCriteriaFactory_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
    virtual ~GenericCriteriaFactory_stub_clp ();
    CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value );

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

#endif // MICO_CONF_NO_POA

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

#ifndef MICO_NO_TOPLEVEL_MODULES

};
#endif



#ifndef MICO_CONF_NO_POA

#ifndef MICO_NO_TOPLEVEL_MODULES
MICO_NAMESPACE_DECL POA_CosGraphsExtension {
#endif

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


class GenericCriteriaFactory : virtual public PortableServer::StaticImplementation
{
  public:
    virtual ~GenericCriteriaFactory ();
    CosGraphsExtension::GenericCriteriaFactory_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 GenericCriteriaFactory * _narrow (PortableServer::Servant);
    virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);

    virtual CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value ) = 0;

  protected:
    GenericCriteriaFactory () {};

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

#ifdef HAVE_NAMESPACE

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

    PortableServer::POA_ptr _default_POA ();

    CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value );

  protected:
    GenericCriteriaFactory_tie () {};

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

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

template<class T>
PortableServer::POA_ptr
GenericCriteriaFactory_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 ();
}

template<class T>
CosGraphs::TraversalCriteria_ptr
GenericCriteriaFactory_tie<T>::create (CosGraphs::PropagationValue propagation_value)
{
  return POA_Tie_Base<T>::ptr->create (propagation_value);
}

#endif

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

#ifndef MICO_NO_TOPLEVEL_MODULES

};
#endif



#ifndef HAVE_NAMESPACE

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

    PortableServer::POA_ptr _default_POA ();

    CosGraphs::TraversalCriteria_ptr create( CosGraphs::PropagationValue propagation_value );

  protected:
    POA_CosGraphsExtension_GenericCriteriaFactory_tie () {};

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

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

template<class T>
PortableServer::POA_ptr
POA_CosGraphsExtension_GenericCriteriaFactory_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 ();
}

template<class T>
CosGraphs::TraversalCriteria_ptr
POA_CosGraphsExtension_GenericCriteriaFactory_tie<T>::create (CosGraphs::PropagationValue propagation_value)
{
  return POA_Tie_Base<T>::ptr->create (propagation_value);
}

#endif

#endif // MICO_CONF_NO_POA

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

extern CORBA::StaticTypeInfo *_marshaller_CosGraphsExtension_GenericCriteriaFactory;

#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
