MercuryFileObjectNet Class Reference

#include <MercuryFiles.h>

Inheritance diagram for MercuryFileObjectNet:

Inheritance graph
[legend]
Collaboration diagram for MercuryFileObjectNet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryFileObjectNet ()
virtual ~MercuryFileObjectNet ()
virtual bool Init (const MString &fName, FilePermission p)
 [internal] Initialize the file
virtual bool Seek (unsigned long position)
 Set the current seek position.
virtual void Close ()
 Close the file.
virtual unsigned long Tell ()
 Return the current seek position.
virtual unsigned long Length ()
 Return the length of the file (in bytes).
virtual bool Write (void *data, unsigned long length)
 Writes length bytes, returns true if it wrote successfully.
virtual unsigned long Read (void *data, unsigned long length)
 Returns the number of bytes read.
virtual bool Check ()
 Returns non-zero value if there's an error.
virtual bool Eof ()
 Return true if end of file.

Private Attributes

unsigned long m_size
unsigned long m_location
void * m_pSocket
char * m_Buffer

Detailed Description

Definition at line 124 of file MercuryFiles.h.


Constructor & Destructor Documentation

MercuryFileObjectNet::MercuryFileObjectNet (  )  [inline]

Definition at line 127 of file MercuryFiles.h.

MercuryFileObjectNet::~MercuryFileObjectNet (  )  [virtual]

Definition at line 31 of file MercuryFiles.cpp.


Member Function Documentation

bool MercuryFileObjectNet::Init ( const MString sPath,
FilePermission  p 
) [virtual]

[internal] Initialize the file

Reimplemented from MercuryFile.

Definition at line 39 of file MercuryFiles.cpp.

bool MercuryFileObjectNet::Seek ( unsigned long  position  )  [virtual]

Set the current seek position.

Implements MercuryFile.

Definition at line 92 of file MercuryFiles.cpp.

void MercuryFileObjectNet::Close (  )  [virtual]

Close the file.

Implements MercuryFile.

Definition at line 103 of file MercuryFiles.cpp.

unsigned long MercuryFileObjectNet::Tell (  )  [virtual]

Return the current seek position.

Implements MercuryFile.

Definition at line 107 of file MercuryFiles.cpp.

unsigned long MercuryFileObjectNet::Length (  )  [virtual]

Return the length of the file (in bytes).

Implements MercuryFile.

Definition at line 112 of file MercuryFiles.cpp.

virtual bool MercuryFileObjectNet::Write ( void *  data,
unsigned long  length 
) [inline, virtual]

Writes length bytes, returns true if it wrote successfully.

Implements MercuryFile.

Definition at line 134 of file MercuryFiles.h.

unsigned long MercuryFileObjectNet::Read ( void *  data,
unsigned long  length 
) [virtual]

Returns the number of bytes read.

Implements MercuryFile.

Definition at line 117 of file MercuryFiles.cpp.

bool MercuryFileObjectNet::Check (  )  [virtual]

Returns non-zero value if there's an error.

Implements MercuryFile.

Definition at line 129 of file MercuryFiles.cpp.

bool MercuryFileObjectNet::Eof (  )  [virtual]

Return true if end of file.

Implements MercuryFile.

Definition at line 134 of file MercuryFiles.cpp.


Member Data Documentation

unsigned long MercuryFileObjectNet::m_size [private]

Definition at line 139 of file MercuryFiles.h.

unsigned long MercuryFileObjectNet::m_location [private]

Definition at line 140 of file MercuryFiles.h.

void* MercuryFileObjectNet::m_pSocket [private]

Definition at line 142 of file MercuryFiles.h.

char* MercuryFileObjectNet::m_Buffer [private]

Definition at line 145 of file MercuryFiles.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo