nux-0.9.48

nux::NFileManagerGNU Class Reference

#include <NuxCore/FileManager/NFileManagerGNU.h>

Inheritance diagram for nux::NFileManagerGNU:
nux::NFileManagerGeneric nux::NFileManager

Public Member Functions

virtual NSerializerCreateFileReader (const TCHAR *Filename, DWORD Flags, LogOutputDevice &Error=GNullDevice)
virtual NSerializerCreateFileWriter (const TCHAR *Filename, DWORD Flags, LogOutputDevice &Error=GNullDevice)
t_s64 FileSize (const TCHAR *Filename)
bool FileExist (const TCHAR *Filename)
int Copy (const TCHAR *DestFile, const TCHAR *SrcFile, bool OverWriteExisting, bool OverWriteReadOnly, NFileTransferMonitor *Monitor)
bool Move (const TCHAR *Dest, const TCHAR *Src, bool OverWriteExisting=true, bool OverWriteReadOnly=false, NFileTransferMonitor *Monitor=NULL)
bool Delete (const TCHAR *Filename, bool OverWriteReadOnly=false)
bool IsReadOnly (const TCHAR *Filename)
bool IsDirectory (const TCHAR *DirectoryName)
bool IsHidden (const TCHAR *Filename)
bool GetFileAttribute (const TCHAR *Filename, bool &isDirectory, bool &isReadOnly, bool &isHidden, t_s64 &Size)
bool MakeDirectory (const TCHAR *Path, bool CreateCompletePath=false)
bool DeleteDirectory (const TCHAR *Path, bool DeleteContentFirst=false)
 Delete directory.
void FindFiles (std::vector< NString > &Result, const TCHAR *Filename, bool Files, bool Directories)
void ListFilesInDirectory (std::vector< NString > &Result, const TCHAR *DirName)
double GetFileAgeSeconds (const TCHAR *Filename)
time_t GetFileLastModified (const TCHAR *Filename)
bool SetDefaultDirectory ()
NString GetCurrentDirectory ()
bool GetTimeStamp (const TCHAR *Filename, FileTimeStamp &Timestamp)

Member Function Documentation

int nux::NFileManagerGNU::Copy ( const TCHAR DestFile,
const TCHAR SrcFile,
bool  OverWriteExisting,
bool  OverWriteReadOnly,
NFileTransferMonitor Monitor 
) [virtual]

Reimplemented from nux::NFileManagerGeneric.

virtual NSerializer* nux::NFileManagerGNU::CreateFileReader ( const TCHAR Filename,
DWORD  Flags,
LogOutputDevice Error = GNullDevice 
) [virtual]

Implements nux::NFileManager.

virtual NSerializer* nux::NFileManagerGNU::CreateFileWriter ( const TCHAR Filename,
DWORD  Flags,
LogOutputDevice Error = GNullDevice 
) [virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::Delete ( const TCHAR Filename,
bool  OverWriteReadOnly = false 
) [virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::DeleteDirectory ( const TCHAR Path,
bool  DeleteContentFirst = false 
) [virtual]

Delete directory.

Delete a Directory. If DeleteContent is true, The content of the directory is deleted before the directory itself;

Parameters:
PathPath of the directory
DeleteContentFirstDelete the content of the directory before deleting the directory itself.
Returns:
TRUE if the directory was deleted.

Reimplemented from nux::NFileManagerGeneric.

bool nux::NFileManagerGNU::FileExist ( const TCHAR Filename) [virtual]

Implements nux::NFileManager.

t_s64 nux::NFileManagerGNU::FileSize ( const TCHAR Filename) [virtual]
Returns:
Size of the File. Return -1 if an error occurs.

Implements nux::NFileManager.

void nux::NFileManagerGNU::FindFiles ( std::vector< NString > &  Result,
const TCHAR Filename,
bool  Files,
bool  Directories 
) [inline, virtual]

Implements nux::NFileManager.

NString nux::NFileManagerGNU::GetCurrentDirectory ( ) [inline, virtual]

Implements nux::NFileManager.

double nux::NFileManagerGNU::GetFileAgeSeconds ( const TCHAR Filename) [inline, virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::GetFileAttribute ( const TCHAR Filename,
bool &  isDirectory,
bool &  isReadOnly,
bool &  isHidden,
t_s64 Size 
) [virtual]
Returns:
TRUE is the file exist.

Implements nux::NFileManager.

time_t nux::NFileManagerGNU::GetFileLastModified ( const TCHAR Filename) [inline, virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::GetTimeStamp ( const TCHAR Filename,
FileTimeStamp Timestamp 
) [inline, virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::IsDirectory ( const TCHAR DirectoryName) [virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::IsHidden ( const TCHAR Filename) [virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::IsReadOnly ( const TCHAR Filename) [virtual]

Implements nux::NFileManager.

void nux::NFileManagerGNU::ListFilesInDirectory ( std::vector< NString > &  Result,
const TCHAR DirName 
) [inline, virtual]

Implements nux::NFileManager.

bool nux::NFileManagerGNU::MakeDirectory ( const TCHAR Path,
bool  CreateCompletePath = false 
) [virtual]

Reimplemented from nux::NFileManagerGeneric.

bool nux::NFileManagerGNU::Move ( const TCHAR Dest,
const TCHAR Src,
bool  OverWriteExisting = true,
bool  OverWriteReadOnly = false,
NFileTransferMonitor Monitor = NULL 
) [virtual]

Reimplemented from nux::NFileManagerGeneric.

bool nux::NFileManagerGNU::SetDefaultDirectory ( ) [inline, virtual]

Implements nux::NFileManager.


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