// // Final Project Iteration 1 // // Authors: Michael Levin (3287290, sec. 2) // Ilya Feldshteyn (2957187, sec. 1) // // Date: 10/24/2007 // #ifndef RESERVOIR_H #define RESERVOIR_H #include using namespace std; class Reservoir { public: Reservoir(string _name); string get_name(); void set_capacity(double value); double get_volume(); double get_capacity(); void set_volume(double value); void set_outflow(double value); double get_outflow() const; void set_loss(double value); void set_minimum_volume(double value); double get_minimum_volume(); bool has_minimum_volume() const; void update_volume(); void check(ostream& out); virtual void print_initial(ostream &out); void operator+=(double value); void operator-=(double value); friend ostream& operator<<(ostream &out, const Reservoir &obj); private: std::string name; double loss, capacity, volume, minimum_volume, outflow; }; #endif