OOFILE | Downloads | Purchasing | Press | Services | Company Information | Soapbox | References | F.A.Q. | HOME

Overview of Input/Output

Input and output in OOFILE is generally done through the standard cout procedures of C++.

For output, the operator<< has been overloaded for use with OOFILE tables, field types and databases. These can simply be passed to cout in the same manner as any other variable.
For example:

   cout << "This is the patients database:\n" << dbPatients;      

cout iterates through the table or database, listing each record with all its fields attached. This can become very large so OOFILE has provided a way of looking at only a few of the fields called a dbView. This is discussed at length in dbViews.

For input, the operator>> has been overloaded. This is used to import records from a data stream eg in ooftst10.

 

Output examples
Entire database using cout ooftst02
Multiple tables by explicit iteration ooftst02
Multiple tables by explicit iteration - using dbView ooftst02
Search field ooftst07.h
Single table using cout  ooftst01
Stream output - file as ooftst04

 

Feature index

(c) Copyright A.D. Software 1994-2000 (All Rights Reserved).
Last Updated: 9th September 2001