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

📄 bank.h

📁 用interbus作为中间件的工具模拟银行自动取款机ATM.
💻 H
字号:
// **************************************************************************
//
// This File Is Automatically Generated by the InterBusIDL-to-C++ Compiler !
//
// Copyright (c) 2000
// Intervision Software Co., Ltd.
// Haidian District, Beijing.
//
// All Rights Reserved
//
// *************************************************************************

// Version: 4.0.0

#ifndef ___bank_h__
#define ___bank_h__

class BankAccount;
typedef BankAccount* BankAccount_ptr;
typedef BankAccount* BankAccountRef;

extern STAR::TypeCodeConst _tc_BankAccount;

void STARDuplicate(BankAccount_ptr);
void STARRelease(BankAccount_ptr);

void STARMarshal(BankAccount_ptr, STAR::OutputStreamImpl*);
void STARUnmarshal(BankAccount_ptr&, STAR::InputStreamImpl*);

typedef STAR::ObjVar< BankAccount > BankAccount_var;
typedef STAR::ObjOut< BankAccount > BankAccount_out;

//
// Interface declare ::BankAccount
//
class BankAccount : virtual public CORBA::Object
{
    BankAccount(const BankAccount&);
    void operator=(const BankAccount&);

    static const char* ids_[];

public:

    BankAccount() { }
    virtual ~BankAccount() { }

    typedef BankAccount_ptr _ptr_type;
    typedef BankAccount_var _var_type;

    static inline BankAccount_ptr
    _duplicate(BankAccount_ptr p)
    {
        if(p)
            p -> _STAR_incRef();
        return p;
    }

    static inline BankAccount_ptr
    _nil()
    {
        return 0;
    }

    static BankAccount_ptr _narrow(CORBA::Object_ptr);
    static BankAccount_ptr _narrow(CORBA::AbstractBase_ptr);

    virtual const char** _STAR_ids() const;
    static const char** _STAR_staticIds();

    //
    // Operation declare ::BankAccount::log
    //
    CORBA::Boolean log(const char* id);

    //
    // Operation declare ::BankAccount::authentificate
    //
    CORBA::Boolean authentificate(const char* password);

    //
    // Operation declare ::BankAccount::requery
    //
    CORBA::Double requery();

    //
    // Operation declare ::BankAccount::withdraw
    //
    CORBA::Boolean withdraw(CORBA::Short nMoney);

    //
    // Operation declare ::BankAccount::deposit
    //
    CORBA::Boolean deposit(CORBA::Short nMoney);

    //
    // Operation declare ::BankAccount::alterPAW
    //
    CORBA::Boolean alterPAW(const char* strPAW);

    //
    // Operation declare ::BankAccount::leave
    //
    CORBA::Boolean leave();
};

//
// Interface declare ::BankAccount
//
namespace CORBA
{

inline void
release(BankAccount_ptr p)
{
    if(p)
        p -> _STAR_decRef();
}

inline Boolean
is_nil(BankAccount_ptr p)
{
    return p == 0;
}

} // End of namespace CORBA

void operator<<=(CORBA::Any&, BankAccount_ptr*);
void operator<<=(CORBA::Any&, BankAccount_ptr);
CORBA::Boolean operator>>=(const CORBA::Any&, BankAccount_ptr&);

inline void
operator<<=(CORBA::Any_var& any, BankAccount_ptr* val)
{
    any.inout() <<= val;
}

inline void
operator<<=(CORBA::Any_var& any, BankAccount_ptr val)
{
    any.inout() <<= val;
}

inline CORBA::Boolean
operator>>=(const CORBA::Any_var& any, BankAccount_ptr& val)
{
    return any.in() >>= val;
}

#endif

⌨️ 快捷键说明

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