hospital.h
// Programmer: Jennifer Leopold date: November 14, 2014
// File: hospital.h
// Purpose: This file contains the definition of the
// Hospital class.
#ifndef HOSPITAL_H
#define HOSPITAL_H
#include <iostream>
#include <cstdlib>
#include "x_rayer.h"
#include "patient.h"
using namespace std;
const float INITIAL_SCHRAUT_AMT = 10;
class Hospital
{
public:
// Default constructor for Hospital
// Preconditions: None
// Postconditions: m_schraut set to INITIAL_SCHRAUT_AMT
Hospital() : m_schraut(INITIAL_SCHRAUT_AMT) {}
// Admit a patient to the hospital
// Preconditions: None
// Postconditions: Patient p will be modified via calls
// to charge_patient and apply
void admit(Patient &p);
// Overloaded operator for << (as friend function)
// Preconditions: None
// Postconditions: Hospital's member variable values will
// be output to outs (thereby modifying ostream outs)
friend ostream& operator << (ostream& outs,
const Hospital& h);
private:
X_Rayer m_the_machine; // X-ray machine
float m_schraut; // ounces of Schraut!
};
#endif