/*
 *  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 __RANDOM_H__
#define __RANDOM_H__




class Random;
typedef Random *Random_ptr;
typedef Random_ptr RandomRef;
typedef ObjVar< Random > Random_var;
typedef ObjOut< Random > Random_out;




/*
 * Base class and common definitions for interface Random
 */

class Random : 
  virtual public CORBA::Object
{
  public:
    virtual ~Random();

    #ifdef HAVE_TYPEDEF_OVERLOAD
    typedef Random_ptr _ptr_type;
    typedef Random_var _var_type;
    #endif

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

    static Random_ptr _nil()
    {
      return 0;
    }

    virtual void *_narrow_helper( const char *repoid );

    virtual CORBA::Long lrand48() = 0;
    virtual CORBA::Long mrand48() = 0;

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

// Stub for interface Random
class Random_stub:
  virtual public Random
{
  public:
    virtual ~Random_stub();
    CORBA::Long lrand48();
    CORBA::Long mrand48();

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

#ifndef MICO_CONF_NO_POA

class Random_stub_clp :
  virtual public Random_stub,
  virtual public PortableServer::StubBase
{
  public:
    Random_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
    virtual ~Random_stub_clp ();
    CORBA::Long lrand48();
    CORBA::Long mrand48();

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

#endif // MICO_CONF_NO_POA

#ifndef MICO_CONF_NO_POA

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

    virtual CORBA::Long lrand48() = 0;
    virtual CORBA::Long mrand48() = 0;

  protected:
    POA_Random () {};

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

#endif // MICO_CONF_NO_POA

extern CORBA::StaticTypeInfo *_marshaller_Random;

#endif
