it_random_funcs.h

来自「这是经典的CORBA程序」· C头文件 代码 · 共 48 行

H
48
字号
//-----------------------------------------------------------------------------
// Copyright (c) 2003-2020 EBUPT INFO CO.,LTD
//-----------------------------------------------------------------------------

// IT_GenieRandom -- extend IT_RandomAny with convenient typed functions
// to generate random values for the IDL data types defined in
// "hello.idl"
// 

#ifndef _IT_RANDOM_FUNCS_H_
#define _IT_RANDOM_FUNCS_H_

#include <omg/orb.hh>
#include <orbix/random_any.h>
#include "hello.hh"

class IT_GenieRandom :
    public virtual IT_RandomAny
{
public:

    IT_GenieRandom(
        CORBA::ORB_ptr  orb,
        CORBA::ULong    seed = 0
    );
    
    virtual ~IT_GenieRandom();

    virtual void
    genie_Hello(
        Hello_out result
    );

private:
    // Not defined, prevent accidental use
    //
    IT_GenieRandom(const IT_GenieRandom&);
    IT_GenieRandom& operator=(const IT_GenieRandom&);
};


// Global random generator object.
//
extern IT_GenieRandom*
global_random;

#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?