#include <vmsFile.h>
Public Member Functions | |
| void | ReadDouble (double &f) |
| void | ReadInt64 (__int64 &i) |
| void | ReadInt (int &i) |
| void | WriteInt (int i) |
| void | WriteInt64 (__int64 i) |
| void | WriteDouble (double f) |
| void | ReadString (fsString &str) |
| void | WriteString (LPCSTR psz) |
| void | Seek (DWORD dwDistance, DWORD dwMethod=FILE_BEGIN) |
| DWORD | GetSize () |
| void | Create (LPCTSTR pszFileName, DWORD dwAccess=GENERIC_READ, DWORD dwShareMode=FILE_SHARE_READ, DWORD dwCreationDisposition=OPEN_EXISTING, DWORD dwFlags=FILE_ATTRIBUTE_NORMAL) |
| void | Close () |
| void | Attach (HANDLE hFile, bool bAutoClose=true) |
| HANDLE | Detach () |
| void | Read (LPVOID pvBuffer, DWORD dwToRead, DWORD *pdwRead=NULL) |
| void | Write (LPCVOID pvBuffer, DWORD dwToWrite) |
| operator HANDLE () const | |
| vmsFile (HANDLE hFile=INVALID_HANDLE_VALUE, bool bAutoClose=true) | |
| virtual | ~vmsFile () |
Protected Attributes | |
| bool | m_bThrowOnPartialRead |
| bool | m_bAutoClose |
| HANDLE | m_hFile |
Definition at line 16 of file vmsFile.h.
| vmsFile::vmsFile | ( | HANDLE | hFile = INVALID_HANDLE_VALUE, |
|
| bool | bAutoClose = true | |||
| ) |
Definition at line 10 of file vmsFile.cpp.
References m_bAutoClose, m_bThrowOnPartialRead, and m_hFile.
| vmsFile::~vmsFile | ( | ) | [virtual] |
| void vmsFile::ReadDouble | ( | double & | f | ) |
Definition at line 141 of file vmsFile.cpp.
References Read().
Referenced by vmsDataFile::LoadFromFile().
| void vmsFile::ReadInt64 | ( | __int64 & | i | ) |
Definition at line 136 of file vmsFile.cpp.
References Read().
Referenced by vmsDataFile::LoadFromFile().
| void vmsFile::ReadInt | ( | int & | i | ) |
Definition at line 131 of file vmsFile.cpp.
References Read().
Referenced by vmsDataFile::LoadFromFile().
| void vmsFile::WriteInt | ( | int | i | ) |
Definition at line 126 of file vmsFile.cpp.
References Write().
Referenced by vmsDataFile::SaveToFile().
| void vmsFile::WriteInt64 | ( | __int64 | i | ) |
Definition at line 121 of file vmsFile.cpp.
References Write().
Referenced by vmsDataFile::SaveToFile().
| void vmsFile::WriteDouble | ( | double | f | ) |
Definition at line 116 of file vmsFile.cpp.
References Write().
Referenced by vmsDataFile::SaveToFile().
| void vmsFile::ReadString | ( | fsString & | str | ) |
Definition at line 107 of file vmsFile.cpp.
References FALSE, fsReadStrFromFile(), GetLastError(), LPSTR, and m_hFile.
Referenced by vmsDataFile::LoadFromFile().
| void vmsFile::WriteString | ( | LPCSTR | psz | ) |
Definition at line 101 of file vmsFile.cpp.
References FALSE, fsSaveStrToFile(), GetLastError(), and m_hFile.
Referenced by vmsDataFile::SaveToFile().
| void vmsFile::Seek | ( | DWORD | dwDistance, | |
| DWORD | dwMethod = FILE_BEGIN | |||
| ) |
| DWORD vmsFile::GetSize | ( | ) |
| void vmsFile::Create | ( | LPCTSTR | pszFileName, | |
| DWORD | dwAccess = GENERIC_READ, |
|||
| DWORD | dwShareMode = FILE_SHARE_READ, |
|||
| DWORD | dwCreationDisposition = OPEN_EXISTING, |
|||
| DWORD | dwFlags = FILE_ATTRIBUTE_NORMAL | |||
| ) |
Definition at line 23 of file vmsFile.cpp.
References Close(), GetLastError(), m_hFile, and NULL.
Referenced by vmsFirefoxExtensionInstaller::Do().
| void vmsFile::Close | ( | ) |
Definition at line 34 of file vmsFile.cpp.
References Detach(), FALSE, GetLastError(), and m_hFile.
Referenced by Attach(), Create(), vmsFirefoxExtensionInstaller::Do(), and ~vmsFile().
| void vmsFile::Attach | ( | HANDLE | hFile, | |
| bool | bAutoClose = true | |||
| ) |
Definition at line 74 of file vmsFile.cpp.
References Close(), m_bAutoClose, and m_hFile.
Referenced by vmsDataFile::SaveToFile().
| HANDLE vmsFile::Detach | ( | ) |
Definition at line 81 of file vmsFile.cpp.
References simple_client::h, and m_hFile.
Referenced by Close().
| void vmsFile::Read | ( | LPVOID | pvBuffer, | |
| DWORD | dwToRead, | |||
| DWORD * | pdwRead = NULL | |||
| ) |
Definition at line 43 of file vmsFile.cpp.
References FALSE, GetLastError(), m_bThrowOnPartialRead, m_hFile, and NULL.
Referenced by vmsDataFile::LoadFromFile(), ReadDouble(), vmsFileUtil::ReadHeader(), ReadInt(), ReadInt64(), vmsFileUtil::ReadString(), and vmsFILE_READ().
| void vmsFile::Write | ( | LPCVOID | pvBuffer, | |
| DWORD | dwToWrite | |||
| ) |
Definition at line 60 of file vmsFile.cpp.
References FALSE, GetLastError(), m_hFile, and NULL.
Referenced by vmsFirefoxExtensionInstaller::Do(), vmsDataFile::SaveToFile(), vmsFILE_SAVE(), WriteDouble(), vmsFileUtil::WriteHeader(), WriteInt(), WriteInt64(), and vmsFileUtil::WriteString().
| vmsFDM::vmsFile::operator HANDLE | ( | ) | const [inline] |
bool vmsFDM::vmsFile::m_bThrowOnPartialRead [protected] |
bool vmsFDM::vmsFile::m_bAutoClose [protected] |
HANDLE vmsFDM::vmsFile::m_hFile [protected] |
Definition at line 53 of file vmsFile.h.
Referenced by Attach(), Close(), Create(), Detach(), GetSize(), operator HANDLE(), Read(), ReadString(), Seek(), vmsFile(), Write(), and WriteString().
1.5.6