CFileManager.hpp

Go to the documentation of this file.
00001 #ifndef __CFileManager__
00002 #define __CFileManager__
00003 
00004 #include "../Basics/CSystemString.hpp"
00005 #include "CFileInformation.hpp"
00006 #include "../Collections/CollectionTypedef.h"
00007 
00008 //  ===========================================================================
00009 
00010 using Exponent::Basics::CSystemString;
00011 using Exponent::Host::CFileInformation;
00012 using Exponent::Collections::TCountedPointerArray;
00013 using Exponent::Collections::TStringCountedPointerArray;
00014 
00015 //  ===========================================================================
00016 
00017 namespace Exponent
00018 {
00019     namespace Host
00020     {
00039         class CFileManager
00040         {
00041         public:
00042 
00043 //  ===========================================================================
00044 
00050             static bool doesFileExist(const CSystemString &filename);
00051 
00058             static bool fileExistsInDirectory(const CSystemString &filename, const CSystemString &path);
00059 
00065             static bool isFolderPath(const CSystemString &path);
00066 
00072             static void getFilesInDirectory(const CSystemString &path, TStringCountedPointerArray *array);
00073 
00079             static void getFilesInDirectory(TCountedPointerArray<CFileInformation> &array, const CSystemString &path);
00080 
00086             static long getNumberOfFilesInDirectory(const CSystemString &path);
00087 
00093             static void getApplicationDirectory(CSystemString &string, bool addTrailingSlashes = false);
00094 
00100             static bool createNewFolder(const CSystemString &string);
00101 
00106             static void sortDirectoryContents(TCountedPointerArray<CFileInformation> &array);
00107 
00108         };
00109     }
00110 }
00111 #endif  // End of CFileManager.hpp

Infinity API - CFileManager.hpp Source File generated on 7 Mar 2007