DiskFile Class Reference

#include <diskfile.h>


Public Member Functions

  DiskFile (void)
  ~DiskFile (void)
bool  Create (string filename, u64 filesize)
bool  Write (u64 offset, const void *buffer, size_t length)
bool  Open (void)
bool  Open (string filename)
bool  Open (string filename, u64 filesize)
bool  IsOpen (void) const
bool  Read (u64 offset, void *buffer, size_t length)
void  Close (void)
u64  FileSize (void) const
string  FileName (void) const
bool  Exists (void) const
bool  Rename (void)
bool  Rename (string filename)
bool  Delete (void)

Static Public Member Functions

static string  GetCanonicalPathname (string filename)
static void  SplitFilename (string filename, string &path, string &name)
static string  TranslateFilename (string filename)
static bool  FileExists (string filename)
static u64  GetFileSize (string filename)
static list< string > *  FindFiles (string path, string wildcard)

Protected Attributes

string  filename
u64  filesize
FILE *  file
u64  offset
bool  exists

Detailed Description

Definition at line 32 of file diskfile.h.


Constructor & Destructor Documentation

DiskFile::DiskFile ( void   ) 

DiskFile::~DiskFile ( void   ) 


Member Function Documentation

bool DiskFile::Create ( string  filename,
u64  filesize  
)

bool DiskFile::Write ( u64  offset,
const void *  buffer,
size_t  length  
)

bool DiskFile::Open ( void   ) 

bool DiskFile::Open ( string  filename  ) 

bool DiskFile::Open ( string  filename,
u64  filesize  
)

bool DiskFile::IsOpen ( void   )  const [inline]

Definition at line 53 of file diskfile.h.

bool DiskFile::Read ( u64  offset,
void *  buffer,
size_t  length  
)

void DiskFile::Close ( void   ) 

u64 DiskFile::FileSize ( void   )  const [inline]

Definition at line 63 of file diskfile.h.

string DiskFile::FileName ( void   )  const [inline]

Definition at line 66 of file diskfile.h.

bool DiskFile::Exists ( void   )  const [inline]

Definition at line 69 of file diskfile.h.

bool DiskFile::Rename ( void   ) 

bool DiskFile::Rename ( string  filename  ) 

bool DiskFile::Delete ( void   ) 

static string DiskFile::GetCanonicalPathname ( string  filename  )  [static]

static void DiskFile::SplitFilename ( string  filename,
string &  path,
string &  name  
) [static]

static string DiskFile::TranslateFilename ( string  filename  )  [static]

static bool DiskFile::FileExists ( string  filename  )  [static]

static u64 DiskFile::GetFileSize ( string  filename  )  [static]

static list* DiskFile::FindFiles ( string  path,
string  wildcard  
) [static]


Field Documentation

string DiskFile::filename [protected]

Definition at line 92 of file diskfile.h.

u64 DiskFile::filesize [protected]

Definition at line 93 of file diskfile.h.

FILE* DiskFile::file [protected]

Definition at line 99 of file diskfile.h.

u64 DiskFile::offset [protected]

Definition at line 103 of file diskfile.h.

bool DiskFile::exists [protected]

Definition at line 106 of file diskfile.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 14 01:40:44 2008 for NNTPGrab by  1.5.4