Consumer Class Reference

#include <consumer.h>

Collaboration diagram for Consumer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Consumer (Interface *intf)
 Constructs the consumer class.
void load ()
 Loads all records from the file.
void process ()
 Processes all records.
void save ()
 Stores all records into file.

Detailed Description

Definition at line 19 of file consumer.h.


Constructor & Destructor Documentation

Consumer::Consumer ( Interface intf  ) 

Constructs the consumer class.

Parameters:
intf pointer to interface object

Precondition:
intf != 0

Definition at line 18 of file consumer.cpp.


Member Function Documentation

void Consumer::load (  ) 

Loads all records from the file.

Definition at line 24 of file consumer.cpp.

References Interface::close(), Interface::open(), and Interface::read().

Referenced by main().

void Consumer::process (  ) 

Processes all records.

Definition at line 33 of file consumer.cpp.

References Interface::calculate().

Referenced by main().

void Consumer::save (  ) 

Stores all records into file.

Definition at line 44 of file consumer.cpp.

References Interface::close(), Interface::open(), and Interface::write().

Referenced by main().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 18:03:33 2010 for mockpp-tutorial by  doxygen 1.6.1