NWindows::NFile::NIO::CFileBase Class Reference

#include <FileIO.h>

Inheritance diagram for NWindows::NFile::NIO::CFileBase:

NWindows::NFile::NIO::CInFile NWindows::NFile::NIO::COutFile

List of all members.

Public Member Functions

 CFileBase ()
virtual ~CFileBase ()
virtual bool Close ()
bool GetPosition (UInt64 &position) const
bool GetLength (UInt64 &length) const
bool Seek (Int64 distanceToMove, DWORD moveMethod, UInt64 &newPosition) const
bool Seek (UInt64 position, UInt64 &newPosition)
bool SeekToBegin ()
bool SeekToEnd (UInt64 &newPosition)
bool GetFileInformation (CByHandleFileInfo &fileInfo) const

Protected Member Functions

bool Create (LPCTSTR fileName, DWORD desiredAccess, DWORD shareMode, DWORD creationDisposition, DWORD flagsAndAttributes)
bool Create (LPCWSTR fileName, DWORD desiredAccess, DWORD shareMode, DWORD creationDisposition, DWORD flagsAndAttributes)

Protected Attributes

bool _fileIsOpen
HANDLE _handle


Detailed Description

Definition at line 26 of file FileIO.h.


Constructor & Destructor Documentation

NWindows::NFile::NIO::CFileBase::CFileBase (  )  [inline]

Definition at line 39 of file FileIO.h.

NWindows::NFile::NIO::CFileBase::~CFileBase (  )  [virtual]

Definition at line 21 of file FileIO.cpp.

References Close().


Member Function Documentation

bool NWindows::NFile::NIO::CFileBase::Create ( LPCTSTR  fileName,
DWORD  desiredAccess,
DWORD  shareMode,
DWORD  creationDisposition,
DWORD  flagsAndAttributes 
) [protected]

bool NWindows::NFile::NIO::CFileBase::Create ( LPCWSTR  fileName,
DWORD  desiredAccess,
DWORD  shareMode,
DWORD  creationDisposition,
DWORD  flagsAndAttributes 
) [protected]

Definition at line 34 of file FileIO.cpp.

References _fileIsOpen, _handle, Close(), CP_ACP, CP_OEMCP, Create(), g_IsNT, NULL, and UnicodeStringToMultiByte().

bool NWindows::NFile::NIO::CFileBase::Close (  )  [virtual]

Definition at line 50 of file FileIO.cpp.

References _fileIsOpen, _handle, and BOOLToBool.

Referenced by Create(), and ~CFileBase().

bool NWindows::NFile::NIO::CFileBase::GetPosition ( UInt64 position  )  const

Definition at line 59 of file FileIO.cpp.

References Seek().

bool NWindows::NFile::NIO::CFileBase::GetLength ( UInt64 length  )  const

Definition at line 64 of file FileIO.cpp.

References _handle, GetFileSize(), and GetLastError().

bool NWindows::NFile::NIO::CFileBase::Seek ( Int64  distanceToMove,
DWORD  moveMethod,
UInt64 newPosition 
) const

bool NWindows::NFile::NIO::CFileBase::Seek ( UInt64  position,
UInt64 newPosition 
)

Definition at line 87 of file FileIO.cpp.

References Seek().

bool NWindows::NFile::NIO::CFileBase::SeekToBegin (  ) 

Definition at line 92 of file FileIO.cpp.

References Seek().

bool NWindows::NFile::NIO::CFileBase::SeekToEnd ( UInt64 newPosition  ) 

Definition at line 98 of file FileIO.cpp.

References Seek().

bool NWindows::NFile::NIO::CFileBase::GetFileInformation ( CByHandleFileInfo fileInfo  )  const


Member Data Documentation

Definition at line 29 of file FileIO.h.

Referenced by Close(), and Create().


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

Generated on Sun May 25 00:21:49 2008 by  doxygen 1.5.6