📄 bank.cpp
字号:
_star_stub->_STAR_request(_star_down);
bool _star_uex;
STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);
if(_star_uex)
{
_star_stub->_STAR_postRemoveHeader(_star_down);
}
else
{
CORBA::Double _star_r;
try
{
_star_r = _star_in -> read_double();
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_unmarshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postRemoveHeader(_star_down);
return _star_r;
}
}
catch(const STAR::FailureException& _star_ex)
{
_star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);
}
}
}
else
{
throw CORBA::INV_OBJREF();
}
}
catch(const STAR::ExceptionBase& _star_ex)
{
_STAR_handleException(_star_ex, _star_retry);
}
}
}
//
// Operation declare ::BankAccount::withdraw
//
CORBA::Boolean
BankAccount::withdraw(CORBA::Short _star_a0)
{
bool _star_retry = true;
while(true)
{
STAR::StubBase_var _star_stubBase = _STAR_getStub();
try
{
STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());
if (_star_stub!=NULL)
{
for(;;)
{
STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("withdraw", true);
try
{
STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);
try
{
_star_out -> write_short(_star_a0);
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_marshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postPrepareHeader(_star_down);
_star_stub->_STAR_request(_star_down);
bool _star_uex;
STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);
if(_star_uex)
{
_star_stub->_STAR_postRemoveHeader(_star_down);
}
else
{
CORBA::Boolean _star_r;
try
{
_star_r = _star_in -> read_boolean();
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_unmarshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postRemoveHeader(_star_down);
return _star_r;
}
}
catch(const STAR::FailureException& _star_ex)
{
_star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);
}
}
}
else
{
throw CORBA::INV_OBJREF();
}
}
catch(const STAR::ExceptionBase& _star_ex)
{
_STAR_handleException(_star_ex, _star_retry);
}
}
}
//
// Operation declare ::BankAccount::deposit
//
CORBA::Boolean
BankAccount::deposit(CORBA::Short _star_a0)
{
bool _star_retry = true;
while(true)
{
STAR::StubBase_var _star_stubBase = _STAR_getStub();
try
{
STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());
if (_star_stub!=NULL)
{
for(;;)
{
STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("deposit", true);
try
{
STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);
try
{
_star_out -> write_short(_star_a0);
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_marshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postPrepareHeader(_star_down);
_star_stub->_STAR_request(_star_down);
bool _star_uex;
STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);
if(_star_uex)
{
_star_stub->_STAR_postRemoveHeader(_star_down);
}
else
{
CORBA::Boolean _star_r;
try
{
_star_r = _star_in -> read_boolean();
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_unmarshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postRemoveHeader(_star_down);
return _star_r;
}
}
catch(const STAR::FailureException& _star_ex)
{
_star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);
}
}
}
else
{
throw CORBA::INV_OBJREF();
}
}
catch(const STAR::ExceptionBase& _star_ex)
{
_STAR_handleException(_star_ex, _star_retry);
}
}
}
//
// Operation declare ::BankAccount::alterPAW
//
CORBA::Boolean
BankAccount::alterPAW(const char* _star_a0)
{
bool _star_retry = true;
while(true)
{
STAR::StubBase_var _star_stubBase = _STAR_getStub();
try
{
STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());
if (_star_stub!=NULL)
{
for(;;)
{
STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("alterPAW", true);
try
{
STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);
try
{
_star_out -> write_string(_star_a0);
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_marshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postPrepareHeader(_star_down);
_star_stub->_STAR_request(_star_down);
bool _star_uex;
STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);
if(_star_uex)
{
_star_stub->_STAR_postRemoveHeader(_star_down);
}
else
{
CORBA::Boolean _star_r;
try
{
_star_r = _star_in -> read_boolean();
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_unmarshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postRemoveHeader(_star_down);
return _star_r;
}
}
catch(const STAR::FailureException& _star_ex)
{
_star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);
}
}
}
else
{
throw CORBA::INV_OBJREF();
}
}
catch(const STAR::ExceptionBase& _star_ex)
{
_STAR_handleException(_star_ex, _star_retry);
}
}
}
//
// Operation declare ::BankAccount::leave
//
CORBA::Boolean
BankAccount::leave()
{
bool _star_retry = true;
while(true)
{
STAR::StubBase_var _star_stubBase = _STAR_getStub();
try
{
STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());
if (_star_stub!=NULL)
{
for(;;)
{
STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("leave", true);
try
{
_star_stub->_STAR_prePrepareHeader(_star_down);
_star_stub->_STAR_postPrepareHeader(_star_down);
_star_stub->_STAR_request(_star_down);
bool _star_uex;
STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);
if(_star_uex)
{
_star_stub->_STAR_postRemoveHeader(_star_down);
}
else
{
CORBA::Boolean _star_r;
try
{
_star_r = _star_in -> read_boolean();
}
catch(const CORBA::SystemException& _star_ex)
{
_star_stub->_STAR_unmarshalEx(_star_down, _star_ex);
}
_star_stub->_STAR_postRemoveHeader(_star_down);
return _star_r;
}
}
catch(const STAR::FailureException& _star_ex)
{
_star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);
}
}
}
else
{
throw CORBA::INV_OBJREF();
}
}
catch(const STAR::ExceptionBase& _star_ex)
{
_STAR_handleException(_star_ex, _star_retry);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -