#include <AP_File.h>
Inherited by AP_Dds, and AP_Tga.
Public Member Functions | |
AP_File (const AP_String &filename) | |
AP_File (void) | |
AP_String | baseDir (void) const |
AP_String | baseName (void) const |
AP_Byte * | buffer (void) const |
virtual AP_Bool | Close (void) |
AP_String | filename (void) const |
AP_Md5 | md5 (void) const |
virtual AP_Bool | Open (const AP_String &mode) |
Overloadable functions. | |
AP_Bool | opened (void) const |
const AP_File & | operator<< (const AP_String &text) |
const AP_File & | operator>> (AP_String &text) |
Read/write a string from text file. | |
AP_Sint32 | Pos (void) |
virtual AP_Bool | Read (void) |
void | Seek (const AP_Uint32 offset) |
void | setFilename (const AP_String &filename) |
AP_Uint32 | size (void) const |
AP_Uint32 | sizeBuffer (void) const |
AP_String | text (void) const |
AP_Bool | Write (const AP_Pointer &data, const AP_Uint32 &size) |
Read/Write a raw data from binary/text file. | |
AP_Bool | Write (const AP_String &text) |
Read/write a string from text file. | |
~AP_File (void) | |
Static Public Member Functions | |
static AP_String | BaseDir (const AP_String &filename) |
Inline. | |
static AP_String | BaseName (const AP_String &filename) |
Protected Attributes | |
AP_String | _m_baseDir |
AP_String | _m_baseName |
AP_Byte * | _m_buffer |
FILE * | _m_fd |
AP_String | _m_filename |
AP_Md5 | _m_md5 |
AP_String | _m_mode |
AP_Bool | _m_opened |
AP_Sint32 | _m_sizeBuffer |
AP_File | ( | void | ) |
~AP_File | ( | void | ) |
AP_String baseDir | ( | void | ) | const [inline] |
AP_String baseName | ( | void | ) | const [inline] |
AP_Byte* buffer | ( | void | ) | const [inline] |
AP_String filename | ( | void | ) | const [inline] |
AP_Md5 md5 | ( | void | ) | const [inline] |
AP_Bool opened | ( | void | ) | const [inline] |
AP_Sint32 Pos | ( | void | ) |
void Seek | ( | const AP_Uint32 | offset | ) |
void setFilename | ( | const AP_String & | filename | ) |
AP_Uint32 size | ( | void | ) | const [inline] |
AP_Uint32 sizeBuffer | ( | void | ) | const [inline] |
AP_String text | ( | void | ) | const [inline] |
AP_Bool Write | ( | const AP_Pointer & | data, | |
const AP_Uint32 & | size | |||
) |
Read/Write a raw data from binary/text file.
AP_String _m_baseDir [protected] |
AP_String _m_baseName [protected] |
FILE* _m_fd [protected] |
AP_String _m_filename [protected] |
AP_Sint32 _m_sizeBuffer [protected] |