#include <FUFileManager.h>
Public Member Functions | |
FUFileManager () | |
Constructor. | |
~FUFileManager () | |
Destructor. | |
const FUUri & | GetCurrentUri () const |
Retrieves the current file path. | |
void | PushRootPath (const fstring &path) |
Sets a new current file path. | |
void | PushRootFile (const fstring &filename) |
Sets a new current file path using a document filename. | |
void | PopRootPath () |
Removes the current file path from the stack. | |
void | PopRootFile () |
See above. | |
FUFile * | OpenFile (const fstring &filename, bool write=false, SchemeOnCompleteCallback *onComplete=NULL, size_t userData=0) |
Opens a file. | |
bool | FileExists (const fstring &filename) |
Determines whether a file exists or not. | |
void | SetForceAbsoluteFlag (bool _forceAbsolute) |
Sets an internal flag that will force all returned file paths and URIs to be absolute, rather than relative to the current file path. | |
fstring | CleanUri (const FUUri &uri) |
Prepares a URI for export. | |
void | SetSchemeCallbacks (FUUri::Scheme scheme, SchemeCallbacks *callbacks) |
Sets the callbacks overriding the actions of a specified scheme. | |
void | RemoveSchemeCallbacks (FUUri::Scheme scheme) |
Removes the callbacks that override actions of a specified scheme. | |
void | RemoveAllSchemeCallbacks () |
Removes all the scheme callbacks registered on this file manager. | |
void | CloneSchemeCallbacks (const FUFileManager *srcFileManager) |
[INTERNAL] Clone the scheme callbacks off the passed in file manager | |
Static Public Member Functions | |
static bool | MakeDirectory (const fstring &directory) |
Makes the directory. | |
static fstring | StripFileFromPath (const fstring &filename) |
Strips the filename from the full file path. | |
static fstring | GetFileExtension (const fstring &filename) |
Retrieves the extension of a filename. | |
static fstring | ExtractNetworkHostname (fstring &filename) |
Extracts the network hostname for a URI and returns it. | |
static fstring | GetApplicationFolderName () |
Retrieves the absolute folder name where the application resides. | |
static fstring | GetModuleFolderName () |
Retrieves the absolute folder name where the FCollada library resides. | |
static void | GetFolderFromPath (const fstring &folder, fstring &path) |
Retrieves the folder name from a full path name. |
Is useful mostly for platform-abstraction and to handle the relative paths within COLLADA documents.
|
Constructor. When creating a new file manager, the file system's current file path is retrieved and placed on the file path stack. |
|
Prepares a URI for export.
|
|
[INTERNAL] Clone the scheme callbacks off the passed in file manager
|
|
Extracts the network hostname for a URI and returns it.
|
|
Determines whether a file exists or not.
|
|
Retrieves the absolute folder name where the application resides.
|
|
Retrieves the current file path. This is the file path used when creating all relative paths.
|
|
Retrieves the extension of a filename.
|
|
Retrieves the folder name from a full path name. For example, C:/dirname/file.ext will return C:/dirname
|
|
Retrieves the absolute folder name where the FCollada library resides.
|
|
Makes the directory. Currently, the directory must be one level from a directory that exists
|
|
Opens a file.
|
|
Sets a new current file path using a document filename. Files paths are placed on a stack in order to easily return to previous file paths.
|
|
Sets a new current file path. Files paths are placed on a stack in order to easily return to previous file paths.
|
|
Removes the callbacks that override actions of a specified scheme.
|
|
Sets an internal flag that will force all returned file paths and URIs to be absolute, rather than relative to the current file path.
|
|
Sets the callbacks overriding the actions of a specified scheme. The provided callbacks are owned by the FUFileManager, and thus deleted if modified or released.
|
|
Strips the filename from the full file path.
|