22 #ifndef DtCmdLine_HELP_VISITOR_H
23 #define DtCmdLine_HELP_VISITOR_H
37 #ifdef DtUSE_UTILITIES_NAMESPACE
38 namespace DtUSE_UTILITIES_NAMESPACE
48 class HelpVisitor:
public Visitor
74 bool pressAnyKey =
true)
76 bool pressAnyKey =
false)
78 :
Visitor(), _cmd( cmd ), _out( out ), myPressAnyKey(pressAnyKey) { }
91 inline void HelpVisitor::visit()
93 (*_out)->usage(*_cmd);
101 DtInfo <<
"Press any key to continue" << std::endl;
116 #ifdef DtUSE_UTILITIES_NAMESPACE
A base class that defines the interface for visitors.
Definition: cmdVisitor.h:41
This file declares the class DtCmdLine::CmdLineOutput.
CmdLineInterface * _cmd
The CmdLine the output will be generated for.
Definition: cmdHelpVisitor.h:56
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.
HelpVisitor(CmdLineInterface *cmd, CmdLineOutput **out, bool pressAnyKey=false)
Constructor.
Definition: cmdHelpVisitor.h:72
virtual ~HelpVisitor()
Definition: cmdHelpVisitor.h:80
void DtSleep(DtTime sleep_period)
Puts the process to sleep for the specified number of seconds.
int DtNotifyLevel
DtNotifyLevel is used to control the level of diagnostics output by VR-Link.
bool myPressAnyKey
Definition: cmdHelpVisitor.h:63
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
CmdLineOutput ** _out
The output object.
Definition: cmdHelpVisitor.h:61
This file contains declarations of classes and functions which aid in keyboard input.
ProcControl.h provides operating system independent methods to control processes. ...
The interface that any output object must implement.
Definition: cmdLineOutput.h:51