#ifndef GLOBALS_H #define GLOBALS_H // INCLUDES: #include #include #include #include #include #include #include using std::string; using std::ifstream; using std::ofstream; using std::istringstream; using std::ostringstream; using std::stringstream; using std::getline; using std::cout; using std::istream; using std::ostream; using std::setfill; using std::setw; // CONSTANTS: const string SUCCESS = "Success\n"; // successful command execution print message const string FAILURE = "Failure\n"; // unsuccessful command execution print message // FUNCTIONS: bool operator <<( ofstream&, bool ); // prints a message related to command success to ofstream // PARAMETERS: // ofstream& outFile filestream to print to // bool flag flags to print success or nonsuccess message // PRE-CONDITIONS // outFile is open // POST-CONDITIONS // relevent message has been printed to outFile // RETURNS // bool whether print was successful // CALLS // none // CALLED BY // main string copyCommand( istream& ); // copies from a stream to a string up to "@@" // PARAMETERS: // istream& dataStream stream to read from // PRE-CONDITIONS // none // POST-CONDITIONS // dataStream has been read up to "@@" // RETURNS // string containing a copy of data from dataStream // CALLS // none // CALLED BY // studentClass::>> // mediaClass::>> #endif