/*
 *  MICO --- an Open Source CORBA implementation
 *  Copyright (c) 1997-2003 by The Mico Team
 *
 *  This file was automatically generated. DO NOT EDIT!
 */

#include <CORBA.h>
#include <mico/throw.h>

#ifndef __COSGRAPHSEXTENSION_H__
#define __COSGRAPHSEXTENSION_H__






namespace CosGraphsExtension
{

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

}



#include <coss/CosObjectIdentity.h>
#include <mico/ir_base.h>
#include <mico/ir.h>
#include <coss/CosRelationships.h>
#include <coss/CosGraphs.h>



namespace CosGraphsExtension
{


/*
 * Base class and 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 );

    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

}


#ifndef MICO_CONF_NO_POA



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

}


#endif // MICO_CONF_NO_POA

extern CORBA::StaticTypeInfo *_marshaller_CosGraphsExtension_GenericCriteriaFactory;

#endif
