helloimpl.h

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

H
48
字号
//-----------------------------------------------------------------------------
// 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 + =
减小字号Ctrl + -
显示快捷键?