//***************************************************************************
// Author:  Scotty Smith
//
// Purpose: Write a class that reads and stores 512 bits worth of a
//          file at a time.
//***************************************************************************
#ifndef INCLUDED_READ512_H
#define INCLUDED_READ512_H

#include "constants.h"

class Read512{
  //CLASS INVARIANT:  msg is a pointer to an array of BLOCKS_PER_512
  //integers, which represent 512 blocks of the input stream

 private:
  unsigned int * msg;

 public:
  //Pre:  None
  //Post: Creates the msg array, and initializes all blocks in msg to
  //      be 0's. 
  Read512();

  //Pre:  in is a well defined input stream reference, which may or
  //      may not be at EOF.
  //      data_holder is a well defined Read512 reference.
  //Post: Returns a reference to the istream object, with 512 bits
  //      read out of the stream.
  //      Modifies the data_holder reference, so that data_holder.msg
  //      points to the correct
  friend istream& operator>>(istream& in, Read512& data_holder);

};

#endif
