23 #ifndef DtCmdLine_VERSION_VISITOR_H
24 #define DtCmdLine_VERSION_VISITOR_H
38 #ifdef DtUSE_UTILITIES_NAMESPACE
39 namespace DtUSE_UTILITIES_NAMESPACE
49 class VersionVisitor:
public Visitor
75 bool pressAnyKey =
true )
77 bool pressAnyKey = false )
79 :
Visitor(), _cmd( cmd ), _out( out ), myPressAnyKey(pressAnyKey) { }
90 inline void VersionVisitor::visit()
92 (*_out)->version(*_cmd);
99 DtInfo <<
"Press any key to continue" << std::endl;
114 #ifdef DtUSE_UTILITIES_NAMESPACE
A base class that defines the interface for visitors.
Definition: cmdVisitor.h:41
This file declares the class DtCmdLine::CmdLineOutput.
char DtPollBlockingInputChar(void)
Polls standard input for a single character.
This file declares the class DtCmdLine::CmdLineInterface.
Functions in vlPrint.h provide an error and print facility for vrlink.
CmdLineInterface * _cmd
The CmdLine of interest.
Definition: cmdVersionVisitor.h:57
void DtSleep(DtTime sleep_period)
Puts the process to sleep for the specified number of seconds.
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out, bool pressAnyKey=false)
Constructor.
Definition: cmdVersionVisitor.h:73
CmdLineOutput ** _out
The output object.
Definition: cmdVersionVisitor.h:62
int DtNotifyLevel
DtNotifyLevel is used to control the level of diagnostics output by VR-Link.
This file declares the class DtCmdLine::Visitor.
DtOutputStream DtInfo
DtInfo is an global instance of a DtOutputStream.
The base class that manages the command line definition and passes along the parsing to the appropria...
Definition: cmdLineInterface.h:52
virtual ~VersionVisitor()
Calls the version method of the output object using the specified CmdLine.
Definition: cmdVersionVisitor.h:85
This file contains declarations of classes and functions which aid in keyboard input.
bool myPressAnyKey
Definition: cmdVersionVisitor.h:64
ProcControl.h provides operating system independent methods to control processes. ...
The interface that any output object must implement.
Definition: cmdLineOutput.h:51