Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Attributes | Private Attributes
cat::AsyncFile Class Reference

#include <ThreadPoolFiles.hpp>

Inheritance diagram for cat::AsyncFile:

List of all members.

Public Member Functions

 AsyncFile (int priorityLevel)
void Close ()
const char * GetFilePath ()
u64 GetSize ()
bool Open (const char *file_path, u32 async_file_modes)
bool Read (AsyncBuffer *buffer, u64 offset, const AsyncCallback &callback)
bool SetSize (u64 bytes)
bool Valid ()
bool Write (AsyncBuffer *buffer, u64 offset, const AsyncCallback &callback=0)
virtual ~AsyncFile ()

Protected Attributes

char _file_path [MAX_PATH+1]

Private Attributes

HANDLE _file

Detailed Description

Definition at line 49 of file ThreadPoolFiles.hpp.


Constructor & Destructor Documentation

cat::AsyncFile::AsyncFile ( int  priorityLevel)
virtual cat::AsyncFile::~AsyncFile ( ) [virtual]

Member Function Documentation

void cat::AsyncFile::Close ( )
const char* cat::AsyncFile::GetFilePath ( )

Reimplemented in cat::bombay::TableIndex.

u64 cat::AsyncFile::GetSize ( )
bool cat::AsyncFile::Open ( const char *  file_path,
u32  async_file_modes 
)
bool cat::AsyncFile::Read ( AsyncBuffer buffer,
u64  offset,
const AsyncCallback callback 
)
bool cat::AsyncFile::SetSize ( u64  bytes)
bool cat::AsyncFile::Valid ( )
bool cat::AsyncFile::Write ( AsyncBuffer buffer,
u64  offset,
const AsyncCallback callback = 0 
)

Member Data Documentation

HANDLE cat::AsyncFile::_file [private]

Definition at line 51 of file ThreadPoolFiles.hpp.

char cat::AsyncFile::_file_path[MAX_PATH+1] [protected]

Reimplemented in cat::bombay::TableIndex.

Definition at line 54 of file ThreadPoolFiles.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net