OpendTect-6_4  6.4
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
CmdDrive::CmdDriver Class Reference
Inheritance diagram for CmdDrive::CmdDriver:
[legend]

Public Member Functions

od_ostreamlogStream ()
 
const char * curWinTitle (int aliasnr=0) const
 
bool streamBlocked (bool parse, const char *tag)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Types

enum  InterceptStatus { NoInterception, InterceptError, InterceptReady }
 

Protected Member Functions

uiMainWinapplWin ()
 
const uiMainWinapplWin () const
 
void exitApplCB (CallBacker *)
 
const uiObjectlocalSearchEnv () const
 
bool doLocalAction (uiObject *localenv, const char *actstr)
 
bool tryAction (const char *identname, const char *actstr)
 
void prepareForResume ()
 
void prepareForAbort ()
 
bool prepareActivate (Activator *)
 
void finishActivate ()
 
void waitForClearance ()
 
void prepareIntercept (const FileMultiString &mnupath, int onoff, InterceptMode=Click)
 
bool didInterceptSucceed (const char *objnm)
 
const MenuInfointerceptedMenuInfo () const
 
void reInit ()
 
WildcardManagerwildcardMan ()
 
IdentifierManageridentifierMan ()
 
const WildcardManagerwildcardMan () const
 
const IdentifierManageridentifierMan () const
 
ExprInterpreterexprInterpreter ()
 
void logErrMsg ()
 
void updateLogStrm ()
 
bool addActions (ObjectSet< Action > &, const char *)
 
int curActionIdx () const
 
bool insertProcedure (int defidx)
 
void moveActionIdx (int nrlines)
 
int lastActionIdxMove () const
 
void end ()
 
void jump (int extralines=0)
 
void mkThread (CallBacker *)
 
bool doAction (const char *)
 
bool goingToChangeUiObj () const
 
bool verifyWinAssert (const char *newwinstr=0)
 
bool verifyWinState (const char *newwinstr=0, WinStateType newwinstate=NoState)
 
bool recover ()
 
void setRecoveryStep (RecoveryTag rt)
 
bool switchCurWin (const uiMainWin *)
 
const uiMainWincurWin () const
 
bool openQDlg () const
 
bool activityStopped (bool checkprocessing=true, bool checktimers=true)
 
bool waitForTimers ()
 
bool waitForProcessing ()
 
void getModalStatus (ModalStatus &)
 
void storeModalStatus ()
 
void activateDone (CallBacker *activator)
 
void timerStartsCB (CallBacker *timer)
 
void timerStoppedCB (CallBacker *timer)
 
void timerShootsCB (CallBacker *timer)
 
void timerShotCB (CallBacker *timer)
 
void forceQtToCatchUp ()
 
void dynamicMenuInterceptor (CallBacker *)
 
bool dispatchDynamicMenu (uiMenu *)
 
void interactCB (CallBacker *)
 
void executeFinishedCB (CallBacker *)
 
void killTaskRunnerCB (CallBacker *)
 
void interact (const InteractSpec *)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * locateCmdMark (const char *actstr)
 

Protected Attributes

uiMainWinapplwin_
 
bool abort_
 
bool pause_
 
bool resume_
 
CmdDriverdrv_
 
BufferString outdir_
 
BufferString logfnm_
 
BufferString cmdfnm_
 
BufferString errmsg_
 
Threads::Threadexecthr_
 
od_ostreamlogstream_
 
FilePathoutfp_
 
WildcardManagerwcm_
 
IdentifierManageridm_
 
ObjectSet< const char > tryoutstack_
 
int tryoutval_
 
ExprInterpretereip_
 
LogModeTag logmode_
 
ObjectSet< Actionactions_
 
int actionidx_
 
int lastmove_
 
bool curactjumped_
 
bool casesensitive_
 
uiObjectlocalsearchenv_
 
bool skipgreyouts_
 
bool uiobjchange_
 
float pendingsleep_
 
float regularsleep_
 
float pendingwait_
 
float regularwait_
 
BufferString winassertion_
 
bool winassertcs_
 
bool winassertsafe_
 
BufferString winstatewin_
 
WinStateType winstatetype_
 
OnErrorTag onerror_
 
RecoveryTag recoverystep_
 
WindowStack winstack_
 
bool openqdialog_
 
Threads::Lock cmddrvlock_
 
int wildmodalclosedstamp_
 
BufferStringSet wildmodalsignatures_
 
ModalStatus curmodalstat_
 
ModalStatus prevmodalstat_
 
int prevnrproc_
 
InterceptStatus interceptstatus_
 
FileMultiString interceptmenupath_
 
InterceptMode interceptmode_
 
int interceptonoff_
 
bool interceptmenu_
 
MenuInfo interceptmenuinfo_
 
const InteractSpecinteractspec_
 
ObjectSet< const CallBackeractivatorlist_
 
ObjectSet< const CallBackertimerlist_
 
ObjectSet< const CallBackertimeoutlist_
 

Private Types

enum  LogModeTag { LogBasic, LogNormal, LogAll }
 
enum  OnErrorTag { Stop, Recover }
 
enum  RecoveryTag { NoClue, CloseCurWin, NextCmd, NextAssertion }
 
enum  InterceptMode { Click, ItemInfo, NodeInfo }
 

Private Member Functions

 CmdDriver (uiMainWin &applwin)
 
 ~CmdDriver ()
 
bool getActionsFromFile (const char *)
 
bool insertActionsFromFile (const char *)
 
bool execute ()
 
void abort ()
 
void pause (bool yn=true)
 
const char * errMsg () const
 
const char * outputDir () const
 
void setOutputDir (const char *od)
 
const char * logFileName () const
 
void setLogFileName (const char *fnm)
 
void clearLog ()
 
void setLogMode (LogModeTag tag)
 
void setOnError (OnErrorTag tag)
 
void setCaseSensitive (bool yn)
 
void skipGreyOuts (bool yn=true)
 
bool isCaseSensitive () const
 
OnErrorTag onError () const
 
bool greyOutsSkipped () const
 
void setSleep (float time, bool regular=true)
 
void setWait (float time, bool regular=true)
 

Static Private Member Functions

static const char * defaultLogFilename ()
 
static bool nowExecuting ()
 

Private Attributes

Notifier< CmdDriverinteractRequest
 
Notifier< CmdDriverexecuteFinished
 

Friends

class(CmdDriver) public ExprInterpreter
 
class Function
 
class MenuTracer
 

Detailed Description

Member Enumeration Documentation

Enumerator
Click 
ItemInfo 
NodeInfo 
Enumerator
NoInterception 
InterceptError 
InterceptReady 
Enumerator
LogBasic 
LogNormal 
LogAll 
Enumerator
Stop 
Recover 
Enumerator
NoClue 
CloseCurWin 
NextCmd 
NextAssertion 

Constructor & Destructor Documentation

CmdDrive::CmdDriver::CmdDriver ( uiMainWin applwin)
private
CmdDrive::CmdDriver::~CmdDriver ( )
private

Member Function Documentation

void CmdDrive::CmdDriver::abort ( )
inlineprivate
void CmdDrive::CmdDriver::activateDone ( CallBacker activator)
protected
bool CmdDrive::CmdDriver::activityStopped ( bool  checkprocessing = true,
bool  checktimers = true 
)
protected
bool CmdDrive::CmdDriver::addActions ( ObjectSet< Action > &  ,
const char *   
)
protected
uiMainWin* CmdDrive::CmdDriver::applWin ( )
inlineprotected
const uiMainWin* CmdDrive::CmdDriver::applWin ( ) const
inlineprotected
void CmdDrive::CmdDriver::clearLog ( )
inlineprivate
int CmdDrive::CmdDriver::curActionIdx ( ) const
inlineprotected
const uiMainWin* CmdDrive::CmdDriver::curWin ( ) const
inlineprotected
const char* CmdDrive::CmdDriver::curWinTitle ( int  aliasnr = 0) const
static const char* CmdDrive::CmdDriver::defaultLogFilename ( )
staticprivate
bool CmdDrive::CmdDriver::didInterceptSucceed ( const char *  objnm)
protected
bool CmdDrive::CmdDriver::dispatchDynamicMenu ( uiMenu )
protected
bool CmdDrive::CmdDriver::doAction ( const char *  )
protected
bool CmdDrive::CmdDriver::doLocalAction ( uiObject localenv,
const char *  actstr 
)
protected
void CmdDrive::CmdDriver::dynamicMenuInterceptor ( CallBacker )
protected
void CmdDrive::CmdDriver::end ( )
protected
const char* CmdDrive::CmdDriver::errMsg ( ) const
inlineprivate
bool CmdDrive::CmdDriver::execute ( )
private
void CmdDrive::CmdDriver::executeFinishedCB ( CallBacker )
protected
void CmdDrive::CmdDriver::exitApplCB ( CallBacker )
protected
ExprInterpreter& CmdDrive::CmdDriver::exprInterpreter ( )
inlineprotected
void CmdDrive::CmdDriver::finishActivate ( )
protected
void CmdDrive::CmdDriver::forceQtToCatchUp ( )
protected
bool CmdDrive::CmdDriver::getActionsFromFile ( const char *  )
private
void CmdDrive::CmdDriver::getModalStatus ( ModalStatus )
protected
bool CmdDrive::CmdDriver::goingToChangeUiObj ( ) const
inlineprotected
bool CmdDrive::CmdDriver::greyOutsSkipped ( ) const
inlineprivate
IdentifierManager& CmdDrive::CmdDriver::identifierMan ( )
inlineprotected
const IdentifierManager& CmdDrive::CmdDriver::identifierMan ( ) const
protected
bool CmdDrive::CmdDriver::insertActionsFromFile ( const char *  )
private
bool CmdDrive::CmdDriver::insertProcedure ( int  defidx)
protected
void CmdDrive::CmdDriver::interact ( const InteractSpec )
protected
void CmdDrive::CmdDriver::interactCB ( CallBacker )
protected
const MenuInfo& CmdDrive::CmdDriver::interceptedMenuInfo ( ) const
protected
bool CmdDrive::CmdDriver::isCaseSensitive ( ) const
inlineprivate
void CmdDrive::CmdDriver::jump ( int  extralines = 0)
protected
void CmdDrive::CmdDriver::killTaskRunnerCB ( CallBacker )
protected
int CmdDrive::CmdDriver::lastActionIdxMove ( ) const
inlineprotected
const uiObject* CmdDrive::CmdDriver::localSearchEnv ( ) const
inlineprotected
static const char* CmdDrive::CmdDriver::locateCmdMark ( const char *  actstr)
staticprotected
void CmdDrive::CmdDriver::logErrMsg ( )
protected
const char* CmdDrive::CmdDriver::logFileName ( ) const
inlineprivate
od_ostream& CmdDrive::CmdDriver::logStream ( )
inline
void CmdDrive::CmdDriver::mkThread ( CallBacker )
protected
void CmdDrive::CmdDriver::moveActionIdx ( int  nrlines)
protected
static bool CmdDrive::CmdDriver::nowExecuting ( )
staticprivate
OnErrorTag CmdDrive::CmdDriver::onError ( ) const
inlineprivate
bool CmdDrive::CmdDriver::openQDlg ( ) const
inlineprotected
const char* CmdDrive::CmdDriver::outputDir ( ) const
inlineprivate
void CmdDrive::CmdDriver::pause ( bool  yn = true)
private
bool CmdDrive::CmdDriver::prepareActivate ( Activator )
protected
void CmdDrive::CmdDriver::prepareForAbort ( )
protected
void CmdDrive::CmdDriver::prepareForResume ( )
protected
void CmdDrive::CmdDriver::prepareIntercept ( const FileMultiString mnupath,
int  onoff,
InterceptMode  = Click 
)
protected
bool CmdDrive::CmdDriver::recover ( )
protected
void CmdDrive::CmdDriver::reInit ( )
protected
void CmdDrive::CmdDriver::setCaseSensitive ( bool  yn)
inlineprivate
void CmdDrive::CmdDriver::setLogFileName ( const char *  fnm)
inlineprivate
void CmdDrive::CmdDriver::setLogMode ( LogModeTag  tag)
inlineprivate
void CmdDrive::CmdDriver::setOnError ( OnErrorTag  tag)
inlineprivate
void CmdDrive::CmdDriver::setOutputDir ( const char *  od)
inlineprivate
void CmdDrive::CmdDriver::setRecoveryStep ( RecoveryTag  rt)
inlineprotected
void CmdDrive::CmdDriver::setSleep ( float  time,
bool  regular = true 
)
private
void CmdDrive::CmdDriver::setWait ( float  time,
bool  regular = true 
)
private
void CmdDrive::CmdDriver::skipGreyOuts ( bool  yn = true)
inlineprivate
void CmdDrive::CmdDriver::storeModalStatus ( )
protected
bool CmdDrive::CmdDriver::streamBlocked ( bool  parse,
const char *  tag 
)
bool CmdDrive::CmdDriver::switchCurWin ( const uiMainWin )
protected
void CmdDrive::CmdDriver::timerShootsCB ( CallBacker timer)
protected
void CmdDrive::CmdDriver::timerShotCB ( CallBacker timer)
protected
void CmdDrive::CmdDriver::timerStartsCB ( CallBacker timer)
protected
void CmdDrive::CmdDriver::timerStoppedCB ( CallBacker timer)
protected
bool CmdDrive::CmdDriver::tryAction ( const char *  identname,
const char *  actstr 
)
protected
void CmdDrive::CmdDriver::updateLogStrm ( )
protected
bool CmdDrive::CmdDriver::verifyWinAssert ( const char *  newwinstr = 0)
protected
bool CmdDrive::CmdDriver::verifyWinState ( const char *  newwinstr = 0,
WinStateType  newwinstate = NoState 
)
protected
void CmdDrive::CmdDriver::waitForClearance ( )
protected
bool CmdDrive::CmdDriver::waitForProcessing ( )
protected
bool CmdDrive::CmdDriver::waitForTimers ( )
protected
WildcardManager& CmdDrive::CmdDriver::wildcardMan ( )
inlineprotected
const WildcardManager& CmdDrive::CmdDriver::wildcardMan ( ) const
protected

Friends And Related Function Documentation

friend class (CmdDriver) public ExprInterpreter
friend
friend class Function
friend
friend class MenuTracer
friend

Member Data Documentation

bool CmdDrive::CmdDriver::abort_
protected
int CmdDrive::CmdDriver::actionidx_
protected
ObjectSet<Action> CmdDrive::CmdDriver::actions_
protected
ObjectSet<const CallBacker> CmdDrive::CmdDriver::activatorlist_
protected
uiMainWin* CmdDrive::CmdDriver::applwin_
protected
bool CmdDrive::CmdDriver::casesensitive_
protected
Threads::Lock CmdDrive::CmdDriver::cmddrvlock_
protected
BufferString CmdDrive::CmdDriver::cmdfnm_
protected
bool CmdDrive::CmdDriver::curactjumped_
protected
ModalStatus CmdDrive::CmdDriver::curmodalstat_
protected
CmdDriver& CmdDrive::CmdDriver::drv_
protected
ExprInterpreter* CmdDrive::CmdDriver::eip_
protected
BufferString CmdDrive::CmdDriver::errmsg_
protected
Threads::Thread* CmdDrive::CmdDriver::execthr_
protected
Notifier<CmdDriver> CmdDrive::CmdDriver::executeFinished
private
IdentifierManager* CmdDrive::CmdDriver::idm_
protected
Notifier<CmdDriver> CmdDrive::CmdDriver::interactRequest
private
const InteractSpec* CmdDrive::CmdDriver::interactspec_
protected
bool CmdDrive::CmdDriver::interceptmenu_
protected
MenuInfo CmdDrive::CmdDriver::interceptmenuinfo_
protected
FileMultiString CmdDrive::CmdDriver::interceptmenupath_
protected
InterceptMode CmdDrive::CmdDriver::interceptmode_
protected
int CmdDrive::CmdDriver::interceptonoff_
protected
InterceptStatus CmdDrive::CmdDriver::interceptstatus_
protected
int CmdDrive::CmdDriver::lastmove_
protected
uiObject* CmdDrive::CmdDriver::localsearchenv_
protected
BufferString CmdDrive::CmdDriver::logfnm_
protected
LogModeTag CmdDrive::CmdDriver::logmode_
protected
od_ostream& CmdDrive::CmdDriver::logstream_
protected
OnErrorTag CmdDrive::CmdDriver::onerror_
protected
bool CmdDrive::CmdDriver::openqdialog_
protected
BufferString CmdDrive::CmdDriver::outdir_
protected
FilePath& CmdDrive::CmdDriver::outfp_
protected
bool CmdDrive::CmdDriver::pause_
protected
float CmdDrive::CmdDriver::pendingsleep_
protected
float CmdDrive::CmdDriver::pendingwait_
protected
ModalStatus CmdDrive::CmdDriver::prevmodalstat_
protected
int CmdDrive::CmdDriver::prevnrproc_
protected
RecoveryTag CmdDrive::CmdDriver::recoverystep_
protected
float CmdDrive::CmdDriver::regularsleep_
protected
float CmdDrive::CmdDriver::regularwait_
protected
bool CmdDrive::CmdDriver::resume_
protected
bool CmdDrive::CmdDriver::skipgreyouts_
protected
ObjectSet<const CallBacker> CmdDrive::CmdDriver::timeoutlist_
protected
ObjectSet<const CallBacker> CmdDrive::CmdDriver::timerlist_
protected
ObjectSet<const char> CmdDrive::CmdDriver::tryoutstack_
protected
int CmdDrive::CmdDriver::tryoutval_
protected
bool CmdDrive::CmdDriver::uiobjchange_
protected
WildcardManager* CmdDrive::CmdDriver::wcm_
protected
int CmdDrive::CmdDriver::wildmodalclosedstamp_
protected
BufferStringSet CmdDrive::CmdDriver::wildmodalsignatures_
protected
bool CmdDrive::CmdDriver::winassertcs_
protected
BufferString CmdDrive::CmdDriver::winassertion_
protected
bool CmdDrive::CmdDriver::winassertsafe_
protected
WindowStack CmdDrive::CmdDriver::winstack_
protected
WinStateType CmdDrive::CmdDriver::winstatetype_
protected
BufferString CmdDrive::CmdDriver::winstatewin_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019