Checkbook Class Reference

#include <checkbook.h>

List of all members.

Public Member Functions

 Checkbook ()
void input (string filename)
void input (istream &in)
void output (string filename)
void output (ostream &out=cout)
double total () const

Private Attributes

vector< Checkchecks


Detailed Description

A class for storing checks of a checkbook.

Author:
Mark Maloof (maloof@cs)
Version:
1.0, 7/13/10

Constructor & Destructor Documentation

Checkbook::Checkbook (  ) 

Default constructor.


Member Function Documentation

void Checkbook::input ( string  filename  ) 

Reads checks from the specified file name, and stores them in the vector checks. Checks if the file opens properly, and prints an error message to cout if an error occurs.

Parameters:
filename the name of the file containing the checks

void Checkbook::input ( istream &  in  ) 

Inputs the checks from the input stream, and stores them in the vector checks.

Parameters:
in the input stream name containing the checks

void Checkbook::output ( string  filename  ) 

Outputs the checks of this Checkbook to the specified file name.

Parameters:
filename the name of the file for writing

void Checkbook::output ( ostream &  out = cout  ) 

Outputs the checks of this Checkbook to the specified output stream.

Parameters:
out the output stream for writing

double Checkbook::total (  )  const

Returns the total amount of the checks in this Checkbook.

Returns:
a double value that is the total amount


Member Data Documentation

vector<Check> Checkbook::checks [private]

the checks of this checkbook


The documentation for this class was generated from the following files:

Generated on Wed Jul 21 13:30:09 2010 by  doxygen 1.5.5