|
Fawkes API
Fawkes Development Version
|
File input class for Xabsl integration. More...
#include "xabsl_tools.h"
Public Member Functions | |
| XabslFileInputSource (const char *filename) | |
| Constructor. | |
| ~XabslFileInputSource () | |
| Destructor. | |
| virtual bool | open () |
| Open file. | |
| virtual void | close () |
| Close file. | |
| virtual double | readValue () |
| Read a double value from the file. | |
| virtual bool | readString (char *destination, int maxLength) |
| Read a string from the file. | |
File input class for Xabsl integration.
Definition at line 47 of file xabsl_tools.h.
| XabslFileInputSource::XabslFileInputSource | ( | const char * | filename | ) |
Constructor.
| filename | name of the file to read |
Definition at line 74 of file xabsl_tools.cpp.
| XabslFileInputSource::~XabslFileInputSource | ( | ) |
|
virtual |
Close file.
Definition at line 103 of file xabsl_tools.cpp.
Referenced by open(), and ~XabslFileInputSource().
|
virtual |
Open file.
Definition at line 93 of file xabsl_tools.cpp.
References close().
|
virtual |
Read a string from the file.
| buf | buffer where the string is stored |
| buf_length | maximum length of the string to be read, warning, this method will write one more byte than buf_length. This is done to be compatible with broken Xabsl. |
Definition at line 133 of file xabsl_tools.cpp.
|
virtual |
Read a double value from the file.
Definition at line 114 of file xabsl_tools.cpp.