FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxFileUtils Class Reference

#include <fbxfile.h>

Class Description

Definition at line 161 of file fbxfile.h.

Static Public Member Functions

static bool Delete (const char *pFileName_UTF8)
 Delete a file from disk. More...
 
static bool Rename (const char *pFileName_UTF8, const char *pNewName_UTF8)
 Rename a file on disk. More...
 
static bool Copy (const char *pDestination_UTF8, const char *pSource_UTF8)
 Copy one file's content to another file (if the destination file not exist, it will be created). More...
 
static FbxInt64 Size (const char *pFilePath_UTF8)
 Get given file's size. More...
 
static bool Exist (const char *pFilePath_UTF8)
 Find if the specified file exist. More...
 
static bool IsReadOnly (const char *pFilePath_UTF8)
 Find if the specified file is in read-only mode. More...
 
static FbxLong GetLastDate (const char *pPath_UTF8)
 Get given file's last date. More...
 
static bool SetLastDate (const char *pPath_UTF8, FbxLong pTime)
 Set the given file's last date as the given date. More...
 
static char * FGets (char *pStr, int pSize, FILE *pStream)
 Get some content of a file. More...
 

Member Function Documentation

◆ Delete()

static bool Delete ( const char *  pFileName_UTF8)
static

Delete a file from disk.

Parameters
pFileName_UTF8The file to be deleted.
Returns
True if delete is successful.

◆ Rename()

static bool Rename ( const char *  pFileName_UTF8,
const char *  pNewName_UTF8 
)
static

Rename a file on disk.

Parameters
pFileName_UTF8The file to be renamed.
pNewName_UTF8The new file name upon rename.
Returns
True if rename is successful.

◆ Copy()

static bool Copy ( const char *  pDestination_UTF8,
const char *  pSource_UTF8 
)
static

Copy one file's content to another file (if the destination file not exist, it will be created).

Parameters
pDestination_UTF8The destination file path
pSource_UTF8The source file path
Returns
Return true if copy is successfully.

◆ Size()

static FbxInt64 Size ( const char *  pFilePath_UTF8)
static

Get given file's size.

◆ Exist()

static bool Exist ( const char *  pFilePath_UTF8)
static

Find if the specified file exist.

Parameters
pFilePath_UTF8The file path to test against.
Returns
Returns true if the file exist.
Examples:
ProceduralTexture/main.cxx.

◆ IsReadOnly()

static bool IsReadOnly ( const char *  pFilePath_UTF8)
static

Find if the specified file is in read-only mode.

Parameters
pFilePath_UTF8The file path to test against.
Returns
Returns true if the file is in read-only mode.

◆ GetLastDate()

static FbxLong GetLastDate ( const char *  pPath_UTF8)
static

Get given file's last date.

◆ SetLastDate()

static bool SetLastDate ( const char *  pPath_UTF8,
FbxLong  pTime 
)
static

Set the given file's last date as the given date.

◆ FGets()

static char* FGets ( char *  pStr,
int  pSize,
FILE *  pStream 
)
static

Get some content of a file.

Parameters
pStrThe content get from file.
pSizeThe size of content.
pStreamThe opened stream of file.

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