Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00013 #ifndef _FBXSDK_CORE_BASE_FOLDER_H_
00014 #define _FBXSDK_CORE_BASE_FOLDER_H_
00015
00016 #include <fbxsdk/fbxsdk_def.h>
00017
00018 #include <fbxsdk/core/base/fbxstring.h>
00019
00020 #include <fbxsdk/fbxsdk_nsbegin.h>
00021
00022 class FBXSDK_DLL FbxFolder
00023 {
00024 public:
00025 enum EEntryType {eRegularEntry, eFolderEntry};
00026
00027 FbxFolder();
00028 ~FbxFolder();
00029
00030 bool Open(const char *pDirName_UTF8);
00031 bool Next();
00032 void Close();
00033 bool Create(const char *pDirName_UTF8);
00034 void Delete (const char *pDirName_UTF8);
00035 bool IsOpen() const;
00036 bool IsEmpty(const char *pDirName_UTF8) const;
00037
00045 static bool Remove(const char* pFolderPath_UTF8, bool pRecursive=true);
00046
00048 static bool Exist(const char* pFolderPath_UTF8);
00049
00051 static bool EnsureExistance(const char* pFolderPath_UTF8);
00052
00053 EEntryType GetType() const;
00054 FbxString Name() const;
00055 char* GetExt() const;
00056
00057 private:
00058 struct FolderImpl;
00059 FolderImpl* mImpl;
00060 };
00061
00062 #include <fbxsdk/fbxsdk_nsend.h>
00063
00064 #endif