kget
bt::File Class Reference
#include <file.h>
List of all members.
Detailed Description
- Author:
- Joris Guisson
Wrapper class for stdio's FILE
Wrapper class for stdio's FILE.
Definition at line 37 of file file.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 88 of file file.h.
Constructor & Destructor Documentation
Constructor.
Definition at line 35 of file file.cpp.
| bt::File::~File |
( |
|
) |
[virtual] |
Destructor, closes the file.
Definition at line 39 of file file.cpp.
Member Function Documentation
Close the file.
Definition at line 57 of file file.cpp.
| bool bt::File::eof |
( |
|
) |
const |
Check to see if we are at the end of the file.
Definition at line 129 of file file.cpp.
| QString bt::File::errorString |
( |
|
) |
const |
Get the error string.
Definition at line 150 of file file.cpp.
Flush the file.
Definition at line 66 of file file.cpp.
Open the file similar to fopen.
- Parameters:
-
- Returns:
- true upon succes
Definition at line 44 of file file.cpp.
Read a bunch of data.
If anything goes wrong an Error will be thrown.
- Parameters:
-
| buf | The buffer to store the data |
| size | Size of the buffer |
- Returns:
- The number of bytes read
Definition at line 88 of file file.cpp.
Seek in the file.
- Parameters:
-
| from | Position to seek from |
| num | Number of bytes to move |
- Returns:
- New position
Definition at line 102 of file file.cpp.
| Uint64 bt::File::tell |
( |
|
) |
const |
Get the current position in the file.
Definition at line 137 of file file.cpp.
Write a bunch of data.
If anything goes wrong an Error will be thrown.
- Parameters:
-
| buf | The data |
| size | Size of the data |
- Returns:
- The number of bytes written
Definition at line 72 of file file.cpp.
The documentation for this class was generated from the following files: