Represent a File object.
More...
#include <Filesystem.h>
List of all members.
Detailed Description
Represent a File object.
The File object represents a file as a stream of bytes.
Member Typedef Documentation
Constructor & Destructor Documentation
| File::File |
( |
const std::string & |
byteStream, |
|
|
const std::string & |
fileName | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
| byteStream | A stream of bytes stored in a std::string object. |
| fileName | The full name of the file including path. |
Member Function Documentation
Gets a reference to the internal ByteStream.
- Note:
- This gets a
const reference to the internal ByteStream.
Gets a reference to the internal ByteStream.
- Note:
- This gets a
non- const reference to the internal ByteStream so that modifications can be made as necessary.
| void File::clear |
( |
|
) |
[inline] |
Clears the File and leaves it completely empty.
| bool File::empty |
( |
|
) |
const [inline] |
| std::string File::filename |
( |
|
) |
const [inline] |
Gets the file name.
- Note:
- Filenames include both the individual file's name and full directory path.
| byte& File::operator[] |
( |
Uint |
pos |
) |
[inline] |
Gets a raw pointer to a const byte stream.
- Note:
- This function is provided as a convenience for use with low-level and legacy C libraries that need a const char* byte stream.
| Uint File::size |
( |
|
) |
const [inline] |
Gets the size, in bytes, of the file.
Member Data Documentation
Internal stream of bytes.
Internal filename including directory path.
The documentation for this class was generated from the following file: