err_msg, logMsg = jobName +
" - exception in Run() ";
66}
catch(std::exception& e) {
76 if(!err_msg.empty()) {
CAppJobError Default implementation for IAppJobError - encapsulates a text error message.
ICanceled * m_SaveCanceled
CCancelGuard(ICanceled *canceled, CTextPanelContext &context)
CTextPanelContext & m_Context
ICanceled * SetCanceled(ICanceled *canceled)
CRef< CTextViewRetrieveResult > m_Result
virtual string x_GetJobName() const =0
virtual CConstIRef< IAppJobError > GetError()
Returns IAppJobError object describing internal error that caused the Job to fail.
void x_AddItems(vector< ITextItem * > &items)
void x_CheckCancelled() const
virtual EJobState Run()
Function that does all the useful work, called by the Engine.
void x_AddItem(ITextItem *item)
virtual CRef< CObject > GetResult()
Returns the Job Result.
shared_ptr< CTextPanelContext > m_Context
CRef< CAppJobError > m_Error
shared_ptr< CRootTextItem > m_RootItem
virtual EJobState x_Run()=0
virtual CConstIRef< IAppJobProgress > GetProgress()
return progress object, the function shall be synchronized internally.
Class to deliver partial results as part of progress report of text viewer.
void SetData(shared_ptr< CRootTextItem > mainItem, shared_ptr< CTextPanelContext > context)
Interface for testing cancellation request in a long lasting operation.
TValue Get(void) const THROWS_NONE
Get atomic counter value.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
void Info(CExceptionArgs_Base &args)
ICanceled * x_GetICanceled()
virtual bool IsCanceled() const override
EJobState
Job states (describe FSM)
virtual string GetDescr() const =0
Returns a human readable description of the Job (optional)
CLockerGuard x_GetGuard()
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CAtomicCounter_WithAutoInit gITextItemCount
static CS_CONTEXT * context
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4