#include <FileIO.h>

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 |
Definition at line 26 of file FileIO.h.
| NWindows::NFile::NIO::CFileBase::~CFileBase | ( | ) | [virtual] |
| bool NWindows::NFile::NIO::CFileBase::Create | ( | LPCTSTR | fileName, | |
| DWORD | desiredAccess, | |||
| DWORD | shareMode, | |||
| DWORD | creationDisposition, | |||
| DWORD | flagsAndAttributes | |||
| ) | [protected] |
Definition at line 23 of file FileIO.cpp.
References _fileIsOpen, _handle, Close(), and NULL.
Referenced by Create(), NWindows::NFile::NIO::COutFile::Open(), and NWindows::NFile::NIO::CInFile::Open().
| 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::Seek | ( | Int64 | distanceToMove, | |
| DWORD | moveMethod, | |||
| UInt64 & | newPosition | |||
| ) | const |
Definition at line 75 of file FileIO.cpp.
References _handle, GetLastError(), and LARGE_INTEGER::QuadPart.
Referenced by GetPosition(), Seek(), SeekToBegin(), SeekToEnd(), and NWindows::NFile::NIO::COutFile::SetLength().
| bool NWindows::NFile::NIO::CFileBase::SeekToBegin | ( | ) |
| bool NWindows::NFile::NIO::CFileBase::GetFileInformation | ( | CByHandleFileInfo & | fileInfo | ) | const |
Definition at line 103 of file FileIO.cpp.
References _handle, NWindows::NFile::NIO::CByHandleFileInfo::Attributes, NWindows::NFile::NIO::CByHandleFileInfo::CreationTime, NWindows::NFile::NIO::CByHandleFileInfo::FileIndex, NWindows::NFile::NIO::CByHandleFileInfo::LastAccessTime, NWindows::NFile::NIO::CByHandleFileInfo::LastWriteTime, NWindows::NFile::NIO::CByHandleFileInfo::NumberOfLinks, NWindows::NFile::NIO::CByHandleFileInfo::Size, and NWindows::NFile::NIO::CByHandleFileInfo::VolumeSerialNumber.
bool NWindows::NFile::NIO::CFileBase::_fileIsOpen [protected] |
HANDLE NWindows::NFile::NIO::CFileBase::_handle [protected] |
Definition at line 30 of file FileIO.h.
Referenced by Close(), Create(), GetFileInformation(), GetLength(), NWindows::NFile::NIO::CInFile::ReadPart(), Seek(), NWindows::NFile::NIO::COutFile::SetEndOfFile(), NWindows::NFile::NIO::COutFile::SetTime(), and NWindows::NFile::NIO::COutFile::WritePart().
1.5.6