Go to the documentation of this file.00001 #ifndef __DIRECTORY_UTILITIES_H__
00002 #define __DIRECTORY_UTILITIES_H__
00003
00004 #include <system/directory_abstraction.h>
00005 #include <utilities/string_utilities.h>
00006
00007 #if !defined( WIN32_PLATFORM ) && !defined( NIX_PLATFORM ) && !defined( MINGW_PLATFORM ) && !defined( CYGWIN_PLATFORM )
00008 #define WIN32_PLATFORM
00009 #endif
00010
00011 #ifdef DIRECTORY_UTILITIES
00012 #if defined( WIN32_PLATFORM ) || defined( MINGW_PLATFORM ) || defined( CYGWIN_PLATFORM )
00013 #define DIRECTORY_UTILITIES_DLL_ENTITY __declspec( dllexport )
00014 #endif
00015
00016 #if defined( NIX_PLATFORM )
00017 #define DIRECTORY_UTILITIES_DLL_ENTITY
00018 #endif
00019 #else
00020 #ifdef WIN32_PLATFORM
00021 #define DIRECTORY_UTILITIES_DLL_ENTITY __declspec( dllimport )
00022 #pragma comment( lib , "directory_utilities.lib" )
00023 #endif
00024
00025 #if defined( CYGWIN_PLATFORM ) || defined( MINGW_PLATFORM )
00026 #define DIRECTORY_UTILITIES_DLL_ENTITY __declspec( dllimport )
00027 #endif
00028
00029 #if defined( NIX_PLATFORM )
00030 #define DIRECTORY_UTILITIES_DLL_ENTITY
00031 #endif
00032 #endif
00033
00034 namespace nitro
00035 {
00036
00049 class DIRECTORY_UTILITIES_DLL_ENTITY Directory{
00050
00051 public:
00052
00074 static void ForceCreateDirectory( const char * DirPath );
00075
00097 static void ForceCreateDirectory( const std::string & DirPath );
00098
00121 static bool DirectoryExists( const char * DirPath );
00122
00145 static bool DirectoryExists( const std::string & DirPath );
00146
00157 virtual ~Directory();
00158 };
00159
00160 ALIAS_FUNCTION_1( Directory::ForceCreateDirectory , aliasForceCreateDirectory , const char * )
00161 ALIAS_FUNCTION_1R( Directory::DirectoryExists , aliasDirectoryExists , const char * , bool )
00162 }
00163
00164 #endif