Base Program class for built-in programs on drive Z: More...
#include <programs.h>
Public Member Functions | |
| virtual | ~Program () |
| Constructor. | |
| virtual void | Run (void)=0 |
| DOS kernel Program Segment Prefix associated with this program at runtime. | |
| bool | GetEnvStr (const char *entry, std::string &result) |
| Run() method, called when the program is run. Subclass must override this. | |
| bool | GetEnvNum (Bitu want_num, std::string &result) |
| Return an environment variable by name. | |
| Bitu | GetEnvCount (void) |
| Return an environment variable by index. | |
| bool | SetEnv (const char *entry, const char *new_string) |
| Return the number of enviormental variables. | |
| void | WriteOut (const char *format,...) |
| Set environment variable. | |
| void | WriteOut_NoParsing (const char *format) |
| Write to standard output. | |
| void | ChangeToLongCmd () |
| Write to standard output, no parsing. | |
| void | DebugDumpEnv () |
| Get command line from shell instead of PSP. | |
| void | WriteExitStatus () |
| Dump environment block to log. | |
Public Attributes | |
| unsigned char | exit_status |
| Exit status of the program. | |
| std::string | temp_line |
| Exit status, returned to the parent DOS process. | |
| CommandLine * | cmd |
| Temporary string object for parsing. | |
| DOS_PSP * | psp |
| Command line object. | |
Base Program class for built-in programs on drive Z:
This provides the base class for built-in programs registered on drive Z:. In most cases, the class will override just the Run() method.
Definition at line 99 of file programs.h.
| virtual Program::~Program | ( | ) | [inline, virtual] |
1.8.0