DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Public Attributes
Program Class Reference

Base Program class for built-in programs on drive Z: More...

#include <programs.h>

Inheritance diagram for Program:
A20GATE BOOT CAPMOUSE CGASNOW CONFIG DOS_Shell IMGMAKE IMGMOUNT INTRO KEYB LDGFXROM LOADFIX MIXER MODE MOUNT MOUSE NMITEST PC98UTIL REDOS RESCAN SHOWGUI VESAMOED VFRCRATE

List of all members.

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 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.
CommandLinecmd
 Temporary string object for parsing.
DOS_PSPpsp
 Command line object.

Detailed Description

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 95 of file programs.h.


Constructor & Destructor Documentation

virtual Program::~Program ( ) [inline, virtual]

Constructor.

Default destructor

Definition at line 98 of file programs.h.

References cmd, and psp.


The documentation for this class was generated from the following files: