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

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

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

class T;
typedef T *T_ptr;
typedef T_ptr TRef;
typedef ObjVar<T> T_var;
typedef T_var T_out;


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

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

    virtual CORBA::Long x() = 0;
    virtual void x( CORBA::Long value ) = 0;
    virtual CORBA::Char c() = 0;
    virtual void op1() = 0;
    virtual void op2( CORBA::Float y ) = 0;
  protected:
    T() {};
  private:
    T( const T& );
    void operator=( const T& );
};

// Stub for interface T
class T_stub:
  virtual public T
{
  public:
    virtual ~T_stub();
    CORBA::Long x();
    void x( CORBA::Long value );
    CORBA::Char c();
    void op1();
    void op2( CORBA::Float y );
  private:
    void operator=( const T_stub& );
};

class T_skel :
  virtual public StaticMethodDispatcher,
  virtual public T
{
  public:
    T_skel( const CORBA::BOA::ReferenceData & = CORBA::BOA::ReferenceData() );
    virtual ~T_skel();
    T_skel( CORBA::Object_ptr obj );
    virtual bool dispatch( CORBA::StaticServerRequest_ptr _req, CORBA::Environment &_env );
    T_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_T;
#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
