AP_File Class Reference

#include <AP_File.h>

Inherited by AP_Dds, and AP_Tga.

Collaboration diagram for AP_File:

Collaboration graph

Public Member Functions

 AP_File (const AP_String &filename)
 AP_File (void)
AP_String baseDir (void) const
AP_String baseName (void) const
AP_Bytebuffer (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_Fileoperator<< (const AP_String &text)
const AP_Fileoperator>> (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)
static AP_String BaseName (const AP_String &filename)

Protected Attributes

AP_String _m_baseDir
AP_String _m_baseName
FILE * _m_fd
AP_String _m_filename
AP_Md5 _m_md5
AP_String _m_mode
AP_Bool _m_opened
AP_Sint32 _m_sizeBuffer

Constructor & Destructor Documentation

AP_File ( void   ) 

AP_File ( const AP_String filename  ) 

~AP_File ( void   ) 

Member Function Documentation

static AP_String BaseDir ( const AP_String filename  )  [inline, static]


AP_String baseDir ( void   )  const [inline]

static AP_String BaseName ( const AP_String filename  )  [inline, static]

AP_String baseName ( void   )  const [inline]

AP_Byte* buffer ( void   )  const [inline]

AP_Bool Close ( void   )  [virtual]

Reimplemented in AP_Dds, and AP_Tga.

AP_String filename ( void   )  const [inline]

AP_Md5 md5 ( void   )  const [inline]

AP_Bool Open ( const AP_String mode  )  [virtual]

Overloadable functions.

Reimplemented in AP_Dds, and AP_Tga.

AP_Bool opened ( void   )  const [inline]

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   ) 

AP_Bool Read ( void   )  [virtual]

Reimplemented in AP_Dds, and AP_Tga.

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_Bool Write ( const AP_String text  ) 

Read/write a string from text file.

Field Documentation

AP_String _m_baseDir [protected]

AP_String _m_baseName [protected]

AP_Byte* _m_buffer [protected]

FILE* _m_fd [protected]

AP_String _m_filename [protected]

AP_Md5 _m_md5 [protected]

AP_String _m_mode [protected]

AP_Bool _m_opened [protected]

AP_Sint32 _m_sizeBuffer [protected]

The documentation for this class was generated from the following files:

Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8