• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/

Lines Matching refs:CFile

27 #include "CFile.h"		// Interface declarations.
150 CFile::CFile()
155 CFile::CFile(const CPath& fileName, OpenMode mode)
162 CFile::CFile(const wxString& fileName, OpenMode mode)
169 CFile::~CFile()
181 int CFile::fd() const
187 bool CFile::IsOpened() const
193 const CPath& CFile::GetFilePath() const
199 bool CFile::Create(const CPath& path, bool overwrite, int accessMode)
208 bool CFile::Create(const wxString& path, bool overwrite, int accessMode)
214 bool CFile::Open(const wxString& fileName, OpenMode mode, int accessMode)
216 MULE_VALIDATE_PARAMS(fileName.Length(), wxT("CFile: Cannot open, empty path."));
222 bool CFile::Open(const CPath& fileName, OpenMode mode, int accessMode)
224 MULE_VALIDATE_PARAMS(fileName.IsOk(), wxT("CFile: Cannot open, empty path."));
276 wxASSERT_MSG(tmpFileName, wxT("Convertion failed in CFile::Open"));
285 void CFile::Reopen(OpenMode mode)
293 bool CFile::Close()
295 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot close closed file."));
314 bool CFile::Flush()
316 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot flush closed file."));
325 sint64 CFile::doRead(void* buffer, size_t count) const
327 MULE_VALIDATE_PARAMS(buffer, wxT("CFile: Invalid buffer in read operation."));
328 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot read from closed file."));
351 sint64 CFile::doWrite(const void* buffer, size_t nCount)
353 MULE_VALIDATE_PARAMS(buffer, wxT("CFile: Invalid buffer in write operation."));
354 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot write to closed file."));
366 sint64 CFile::doSeek(sint64 offset) const
383 uint64 CFile::GetPosition() const
396 uint64 CFile::GetLength() const
398 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot get length of closed file."));
409 uint64 CFile::GetAvailable() const
424 bool CFile::SetLength(uint64 new_len)
426 MULE_VALIDATE_STATE(IsOpened(), wxT("CFile: Cannot set length when no file is open."));