| 1 |
README for ConfigFile distribution |
| 2 |
Richard J. Wagner v2.1 24 May 2004 |
| 3 |
|
| 4 |
Instructions |
| 5 |
------------ |
| 6 |
|
| 7 |
The only necessary files for using this configuration file reader are |
| 8 |
"ConfigFile.h" and "ConfigFile.cpp". The class name is ConfigFile. |
| 9 |
|
| 10 |
Usage examples are in "example.cpp". Linux or Unix users can type "make" to |
| 11 |
compile and then type "make run" to run the example program. |
| 12 |
|
| 13 |
The test program in "tester.cpp" will check that the class properly reads |
| 14 |
a variety of simple and complex configuration file entries. To run the test |
| 15 |
program type "make test". |
| 16 |
|
| 17 |
When you are done with the examples and the test program, type "make clean" |
| 18 |
to get rid of temporary files. |
| 19 |
|
| 20 |
For Windows or Mac users with a compiler such as Metrowerks CodeWarrior or |
| 21 |
Microsoft Visual C++, simply add "example.cpp" and "ConfigFile.cpp" to an |
| 22 |
empty C++ console application. Compile and run to see the configuration |
| 23 |
file reader in action. Do likewise with "tester.cpp" to check that the |
| 24 |
code works properly with your compiler. |
| 25 |
|
| 26 |
If you encounter any problems, please e-mail a copy of the output and a |
| 27 |
description of the test system to me at "[email protected]". Any other |
| 28 |
feedback is welcome too. |
| 29 |
|
| 30 |
|
| 31 |
Installation |
| 32 |
------------ |
| 33 |
|
| 34 |
Just copy the files "ConfigFile.h" and "ConfigFile.cpp" to your working |
| 35 |
directory or some other place where your compiler can find them. Add |
| 36 |
"ConfigFile.cpp" to your project and put the following line at the top of |
| 37 |
your program to access the ConfigFile class: |
| 38 |
|
| 39 |
#include "ConfigFile.h" |
| 40 |
|
| 41 |
|
| 42 |
Contents |
| 43 |
-------- |
| 44 |
|
| 45 |
README - this file |
| 46 |
ConfigFile.h - declaration of ConfigFile class |
| 47 |
ConfigFile.cpp - definitions of ConfigFile class |
| 48 |
example.cpp - examples of using ConfigFile |
| 49 |
tester.cpp - tests ConfigFile class |
| 50 |
example.inp - configuration file for example program |
| 51 |
test.inp - configuration file for tester program |
| 52 |
Triplet.h - sample user-defined data type |
| 53 |
Makefile - instructions used by "make" command |
| 54 |
ConfigFile.html - Web page about ConfigFile |
| 55 |
AntBlueMaize.jpg - background for ConfigFile.html |
| 56 |
ArrowHome.gif - home icon for ConfigFile.html |
| 57 |
main.css - style sheet for ConfigFile.html |