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

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

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

class enums;
typedef enums *enums_ptr;
typedef enums_ptr enumsRef;
typedef ObjVar<enums> enums_var;
typedef enums_var enums_out;


// Common definitions for interface enums
class enums : virtual public CORBA::Object
{
  public:
    virtual ~enums();
    static enums_ptr _duplicate( enums_ptr obj );
    static enums_ptr _narrow( CORBA::Object_ptr obj );
    static enums_ptr _nil();

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

    enum x {
      a = 0,
      b,
      c
    };

    typedef x& x_out;

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

// Stub for interface enums
class enums_stub:
  virtual public enums
{
  public:
    virtual ~enums_stub();
  private:
    void operator=( const enums_stub& );
};

class enums_skel :
  virtual public StaticMethodDispatcher,
  virtual public enums
{
  public:
    enums_skel( const CORBA::BOA::ReferenceData & = CORBA::BOA::ReferenceData() );
    virtual ~enums_skel();
    enums_skel( CORBA::Object_ptr obj );
    virtual bool dispatch( CORBA::StaticServerRequest_ptr _req, CORBA::Environment &_env );
    enums_ptr _this();

};

#ifndef MICO_CONF_NO_POA

#endif // MICO_CONF_NO_POA

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

extern CORBA::StaticTypeInfo *_marshaller_enums_x;
extern CORBA::StaticTypeInfo *_marshaller_enums;
#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
