/* Eric Knibbe, David Streng
*  CS 232
*  Project 3
*/

#ifndef COMMANDLINE_H
#define COMMANDLINE_H

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;

/*	Command Line
*	Reads whatever is typed into the command line, parses it, 
*	and creates the argc and argv variables. 
*/
class CommandLine {
	public:							// public methods
        	CommandLine(istream& in);
		~CommandLine(void);
		char* getCommand() const;
        	int getArgCount() const;
        	char** getArgVector() const;
        	char* getArgVector(int i) const;
        	bool noAmpersand() const;
	private:						// instance variables
        	int argc;
		char* argument_ptr;
		char** argv;
        	bool hasAmpersand;
};

#endif

