kodi
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
NPT_File Class Reference
Inheritance diagram for NPT_File:
Inheritance graph
[legend]
Collaboration diagram for NPT_File:
Collaboration graph
[legend]

Public Member Functions

 NPT_File (const char *path)
 
NPT_Result Load (NPT_DataBuffer &buffer)
 
NPT_Result Save (const NPT_DataBuffer &buffer)
 
const NPT_StringGetPath ()
 
NPT_Result GetSize (NPT_LargeSize &size)
 
NPT_Result GetInfo (NPT_FileInfo &info)
 
NPT_Result ListDir (NPT_List< NPT_String > &entries)
 
NPT_Result Rename (const char *path)
 
NPT_Result Open (OpenMode mode) override
 
NPT_Result Close () override
 
NPT_Result GetInputStream (NPT_InputStreamReference &stream) override
 
NPT_Result GetOutputStream (NPT_OutputStreamReference &stream) override
 
NPT_Fileoperator= (const NPT_File &file)
 

Static Public Member Functions

static NPT_Result GetRoots (NPT_List< NPT_String > &roots)
 
static NPT_Result GetSize (const char *path, NPT_LargeSize &size)
 
static NPT_Result GetInfo (const char *path, NPT_FileInfo *info=NULL)
 
static bool Exists (const char *path)
 
static NPT_Result Remove (const char *path, bool recurse=false)
 
static NPT_Result RemoveFile (const char *path)
 
static NPT_Result RemoveDir (const char *path)
 
static NPT_Result RemoveDir (const char *path, bool force_if_not_empty)
 
static NPT_Result Rename (const char *from_path, const char *to_path)
 
static NPT_Result ListDir (const char *path, NPT_List< NPT_String > &entries, NPT_Ordinal start=0, NPT_Cardinal count=0)
 
static NPT_Result CreateDir (const char *path)
 
static NPT_Result CreateDir (const char *path, bool create_intermediate_dirs)
 
static NPT_Result GetWorkingDir (NPT_String &path)
 
static NPT_Result Load (const char *path, NPT_DataBuffer &buffer, NPT_FileInterface::OpenMode mode=NPT_FILE_OPEN_MODE_READ)
 
static NPT_Result Load (const char *path, NPT_String &data, NPT_FileInterface::OpenMode mode=NPT_FILE_OPEN_MODE_READ)
 
static NPT_Result Save (const char *path, NPT_String &data)
 
static NPT_Result Save (const char *path, const NPT_DataBuffer &buffer)
 

Protected Attributes

NPT_FileInterfacem_Delegate
 
NPT_String m_Path
 
bool m_IsSpecial
 

Additional Inherited Members

- Public Types inherited from NPT_FileInterface
typedef unsigned int OpenMode
 

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