recoverythread.cpp
来自「oracle下调用数据泵接口进行远程数据导出和导入(数据恢复)的CORBA服务」· C++ 代码 · 共 47 行
CPP
47 行
//--------------------------------// coder Cai jianyu (comment by Yuan Zhijian)// begin 2002// finish 2003// v1 2003-01//--------------------------------//#include <RecoveryThread.h>#include "RecoveryThread.h"#include <predefine.h>CRecoveryThread::CRecoveryThread(DataRecovery_impl * DataRec){ m_DataRec = DataRec;}int CRecoveryThread::nInit(DataRecovery_impl * DataRec){ // cout<<"-------call CRecoveryThread::CRecoveryThread---------"<<endl; m_DataRec = DataRec; return SUCCESS;}CRecoveryThread::~CRecoveryThread(){ }void CRecoveryThread::run(){ //在这里具体执行数据恢复的过程 int rc; //调用判断是否进行回复工作的函数 rc = m_DataRec -> nNeedRecovery(); if (rc == 1) //需要进行数据恢复操作! { rc = m_DataRec -> nRecoveryProcess(); } else //拒绝进行数据恢复操作! { rc = m_DataRec -> nRefuse(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?