|
| void | test () |
| | InputFile () |
| | Default constructor.
|
| | ~InputFile () |
| | Destructor.
|
| | InputFile (const char *filename, const char *mode, InputFile::ifileCompression compressionMode=InputFile::DEFAULT) |
| | Constructor for opening a file.
|
| void | bufferReads (unsigned int bufferSize=DEFAULT_BUFFER_SIZE) |
| | Set the buffer size for reading from files so that bufferSize bytes are read at a time and stored until accessed by another read call.
|
| void | disableBuffering () |
| | Disable read buffering.
|
| int | ifclose () |
| | Close the file.
|
| int | ifread (void *buffer, unsigned int size) |
| | Read size bytes from the file into the buffer.
|
| int | readTilChar (const std::string &stopChars, std::string &stringRef) |
| | Read until the specified characters, returning which character was found causing the stop, -1 returned for EOF, storing the other read characters into the specified string.
|
| int | readTilChar (const std::string &stopChars) |
| | Read until the specified characters, returning which character was found causing the stop, -1 returned for EOF, dropping all read chars.
|
| int | discardLine () |
| | Read until the end of the line, discarding the characters, returning -1 returned for EOF and returning 0 if the end of the line was found.
|
| int | readLine (std::string &line) |
| | Read, appending the characters into the specified string until new line or EOF is found, returning -1 if EOF is found first and 0 if new line is found first.
|
| int | readTilTab (std::string &field) |
| | Read, appending the characters into the specified string until tab, new line, or EOF is found, returning -1 if EOF is found first, 0 if new line is found first, or 1 if a tab is found first.
|
| int | ifgetc () |
| | Get a character from the file.
|
| bool | ifgetline (void *voidBuffer, size_t max) |
| | Get a line from the file.
|
| void | ifrewind () |
| | Reset to the beginning of the file.
|
| int | ifeof () const |
| | Check to see if we have reached the EOF.
|
| unsigned int | ifwrite (const void *buffer, unsigned int size) |
| | Write the specified buffer into the file.
|
| bool | isOpen () const |
| | Returns whether or not the file was successfully opened.
|
| int64_t | iftell () |
| | Get current position in the file.
|
| bool | ifseek (int64_t offset, int origin) |
| | Seek to the specified offset from the origin.
|
| const char * | getFileName () const |
| | Get the filename that is currently opened.
|
| void | setAttemptRecovery (bool flag=false) |
| | Enable (default) or disable recovery.
|
| bool | attemptRecoverySync (bool(*checkSignature)(void *data), int length) |
| bool | openFile (const char *filename, const char *mode, InputFile::ifileCompression compressionMode) |
Definition at line 21 of file InputFileTest.h.