#include <PropaneFileReader.h>
Public Member Functions | |
| PropaneFileReader (char *filename) | |
| Construct, opening the reader to a file. | |
| PropaneFileReader () | |
| Construct, opening no file. | |
| virtual | ~PropaneFileReader () |
| Destructor. | |
| virtual std::string | getString (std::string key) |
| Returns a string associated with a key. | |
| virtual int | getInteger (std::string key) |
| Returns an integer associated with a key. | |
| virtual bool | ready () |
| When true, the file is ready for reading. | |
Protected Member Functions | |
| void | reset () |
| Resets the stream position to the start of the file. | |
| bool | hasKey (std::string key) |
| Checks for the presence of a given key in the file. | |
| std::string | getValueForKey (std::string key) |
| Returns the string value associated with a key. | |
Protected Attributes | |
| std::ifstream | theFile |
| The raw file stream. | |
| bool | isReady |
| Internal variable holding the readiness of the file stream. | |
1.4.7