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

📄 helloimpl.h

📁 这是经典的CORBA程序
💻 H
字号:
//-----------------------------------------------------------------------------
// Copyright (c) 2003-2020 EBUPT INFO CO.,LTD
//-----------------------------------------------------------------------------

// Class: HelloImpl
// A POA servant which implements of the Hello interface
//

#ifndef HELLOIMPL_H_
#define HELLOIMPL_H_

#include <omg/orb.hh>
#include "helloS.hh"
#include "it_servant_base_overrides.h"


class HelloImpl :
    public virtual IT_ServantBaseOverrides,
    public virtual POA_Hello
{
public:
    HelloImpl(PortableServer::POA_ptr);

    virtual ~HelloImpl();

    // _create() -- create a new servant.
    // Hides the difference between direct inheritance and tie servants.
    //    
    static POA_Hello*
    _create(PortableServer::POA_ptr);


    // IDL operations
    //
    virtual char*
    getGreeting() IT_THROW_DECL((
        CORBA::SystemException
    ));

private: 
    // The following are not implemented
    //
    HelloImpl(const HelloImpl &);
    HelloImpl& operator=(const HelloImpl &);
}; 

#endif

⌨️ 快捷键说明

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