Fawkes API
Fawkes Development Version
|
File input class for Xabsl integration. More...
#include "xabsl_tools.h"
Public Member Functions | |
XabslFileInputSource (const char *filename) | |
Constructor. More... | |
~XabslFileInputSource () | |
Destructor. More... | |
virtual bool | open () |
Open file. More... | |
virtual void | close () |
Close file. More... | |
virtual double | readValue () |
Read a double value from the file. More... | |
virtual bool | readString (char *destination, int maxLength) |
Read a string from the file. More... | |
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 | ( | ) |
Destructor.
Definition at line 82 of file xabsl_tools.cpp.
|
virtual |
Close file.
Definition at line 103 of file xabsl_tools.cpp.
|
virtual |
Open file.
Definition at line 93 of file xabsl_tools.cpp.
|
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.