⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 it_random_funcs.h

📁 这是经典的CORBA程序
💻 H
字号:
//-----------------------------------------------------------------------------
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -