/* * params.hpp * * Created on: Oct 3, 2010 * Author: Michael J. Fischer * for use in Yale course CPSC 427a, Fall 2010 */ #pragma once #include "tools.hpp" class Params { private: bool flagSeed; // option "-s" given bool flagFileName; // option "-f" given unsigned int seed; // seed given by -s const char* fileName; // filename specified by -f int numRounds; // number of rounds public: Params(int argc, char* argv[]); bool getFlagSeed() const {return flagSeed;} bool getFlagFileName() const {return flagFileName; } unsigned int getSeed() const {return seed; } const char* getFileName() const {return fileName;} int getNumRounds() const {return numRounds;} ostream& print(ostream& out) const; }; //------------------------------------------------------------------- inline ostream& operator<<(ostream& out, const Params& params) { return params.print(out); }