fbxsdk/core/base/fbxfile.h Source File
Go to the documentation of this file.
13 #ifndef _FBXSDK_CORE_BASE_FILE_H_
14 #define _FBXSDK_CORE_BASE_FILE_H_
30 enum EMode {eNone, eReadOnly,
eReadWrite, eCreateWriteOnly, eCreateReadWrite, eCreateAppend};
42 virtual bool Open(
const char* pFileName_UTF8,
const EMode pMode=eCreateReadWrite,
const bool pBinary=
true);
50 virtual bool Open(
FbxStream* pStream,
void* pStreamData,
const char* pMode);
61 virtual void Seek(
const FbxInt64 pOffset,
const ESeekPos pSeekPos=eBegin);
73 virtual size_t Read(
void* pDstBuf,
const size_t pSize);
81 virtual char* ReadString(
char* pDstBuf,
const size_t pDstSize,
bool pStopAtFirstWhiteSpace=
false);
88 virtual size_t Write(
const void* pSrcBuf,
const size_t pSize);
95 virtual bool WriteFormat(
const char* pFormat, ...);
105 virtual bool Truncate(
const FbxInt64 pSize);
110 virtual bool EndOfFile()
const;
121 virtual void GetMemoryFileInfo(
void** pMemPtr,
size_t pSize);
131 bool IsStream()
const;
136 const char* GetFilePathName()
const;
141 EMode GetFileMode()
const;
168 static bool Delete(
const char* pFileName_UTF8);
175 static bool Rename(
const char* pFileName_UTF8,
const char* pNewName_UTF8);
182 static bool Copy(
const char* pDestination_UTF8,
const char* pSource_UTF8);
185 static FbxInt64 Size(
const char* pFilePath_UTF8);
191 static bool Exist(
const char* pFilePath_UTF8);
197 static bool IsReadOnly(
const char* pFilePath_UTF8);
201 static FbxLong GetLastDate(
const char* pPath_UTF8);
204 static bool SetLastDate(
const char* pPath_UTF8,
FbxLong pTime);
211 static char* FGets(
char* pStr,
int pSize, FILE* pStream);
214 template<
class T>
inline const T
FbxSwab(
const T x)
FBX SDK environment definition.
Abstract class for implementing I/O operations through a stream of data.
Utility class to manipulate strings.
const T FbxSwab(const T x)
signed long long FbxInt64
Class for interfacing with files, providing a similar interface for files independant of the OS or fi...