cs252/lab3-src-final/command.hh
2018-10-25 14:45:56 -04:00

35 lines
600 B
C++

#ifndef command_h
#define command_h
#include "simpleCommand.hh"
// Command Data Structure
struct Command {
int _numOfAvailableSimpleCommands;
int _numOfSimpleCommands;
SimpleCommand ** _simpleCommands;
char * _outFile;
char * _inFile;
char * _errFile;
int _background;
int _appendOut;
int _appendErr;
int _mergeOutErr;
int _parseFailure;
void prompt();
void print();
void execute();
void clear();
Command();
void insertSimpleCommand( SimpleCommand * simpleCommand );
static Command _currentCommand;
static SimpleCommand *_currentSimpleCommand;
};
#endif