31 lines
618 B
C
31 lines
618 B
C
|
|
#pragma once
|
|||
|
|
/*!
|
|||
|
|
* @breif 人工干预操作结果
|
|||
|
|
*
|
|||
|
|
* @author sjq
|
|||
|
|
* @date 五月 2018
|
|||
|
|
*/
|
|||
|
|
#include <string>
|
|||
|
|
#include "boost/thread/mutex.hpp"
|
|||
|
|
#include "boost/thread/condition_variable.hpp"
|
|||
|
|
|
|||
|
|
#include "common/DataType.h"
|
|||
|
|
#include "PredifineForSeqServer.h"
|
|||
|
|
|
|||
|
|
class COpResultUi
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
COpResultUi();
|
|||
|
|
~COpResultUi();
|
|||
|
|
|
|||
|
|
void resetResult();
|
|||
|
|
SOpResultUi getResult(int waitTime);
|
|||
|
|
bool setResult(const SOpResultUi& result);
|
|||
|
|
|
|||
|
|
static std::string UiOpTypeStr(UI_OP_RESULT_TYPE type);
|
|||
|
|
private:
|
|||
|
|
boost::mutex m_muWait;
|
|||
|
|
boost::condition_variable m_condWait;
|
|||
|
|
SOpResultUi m_objOpResultUi;
|
|||
|
|
};
|