Scid  4.6.5
Public Member Functions | List of all members
MFile Class Reference

#include <mfile.h>

Public Member Functions

 MFile ()
 
 ~MFile ()
 
errorT Create (const char *name, fileModeT fmode)
 
errorT Open (const char *name, fileModeT fmode)
 
errorT Seek (uint position)
 
errorT Flush ()
 
bool EndOfFile ()
 
errorT WriteNBytes (const char *str, uint length)
 
errorT ReadNBytes (char *str, uint length)
 
errorT WriteOneByte (byte value)
 
errorT WriteTwoBytes (uint value)
 
errorT WriteThreeBytes (uint value)
 
errorT WriteFourBytes (uint value)
 
int ReadOneByte ()
 
uint ReadTwoBytes ()
 
uint ReadThreeBytes ()
 
uint ReadFourBytes ()
 
const char * GetFileName ()
 

Detailed Description

Definition at line 52 of file mfile.h.

Constructor & Destructor Documentation

MFile::MFile ( )
inline

Definition at line 78 of file mfile.h.

MFile::~MFile ( )
inline

Definition at line 79 of file mfile.h.

Member Function Documentation

errorT MFile::Create ( const char *  name,
fileModeT  fmode 
)

Definition at line 137 of file mfile.cpp.

bool MFile::EndOfFile ( )
inline

Definition at line 108 of file mfile.h.

errorT MFile::Flush ( )

Definition at line 88 of file mfile.cpp.

const char* MFile::GetFileName ( )
inline

Definition at line 104 of file mfile.h.

errorT MFile::Open ( const char *  name,
fileModeT  fmode 
)

Definition at line 95 of file mfile.cpp.

uint MFile::ReadFourBytes ( )

Definition at line 256 of file mfile.cpp.

errorT MFile::ReadNBytes ( char *  str,
uint  length 
)

Definition at line 190 of file mfile.cpp.

int MFile::ReadOneByte ( )
inline

Definition at line 143 of file mfile.h.

uint MFile::ReadThreeBytes ( )

Definition at line 232 of file mfile.cpp.

uint MFile::ReadTwoBytes ( )

Definition at line 212 of file mfile.cpp.

errorT MFile::Seek ( uint  position)

Definition at line 57 of file mfile.cpp.

errorT MFile::WriteFourBytes ( uint  value)

Definition at line 245 of file mfile.cpp.

errorT MFile::WriteNBytes ( const char *  str,
uint  length 
)

Definition at line 155 of file mfile.cpp.

errorT MFile::WriteOneByte ( byte  value)
inline

Definition at line 125 of file mfile.h.

errorT MFile::WriteThreeBytes ( uint  value)

Definition at line 223 of file mfile.cpp.

errorT MFile::WriteTwoBytes ( uint  value)

Definition at line 204 of file mfile.cpp.


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