This class handles the file management inside HISE. More...
Public Member Functions | |
void | createRSAKey () const |
Fills the given array with the contents of the specified directory. More... | |
bool | isActive () const |
Checks if the ProjectHandler is active (if a directory is set). More... | |
bool | isRedirected (ProjectHandler::SubDirectories dir) const |
Checks if a directory is redirected. More... | |
Public Member Functions inherited from FileHandlerBase | |
void | createLinkFile (SubDirectories dir, const File &relocation) |
Creates a platform dependant file in the subdirectory that redirects to another location. More... | |
String | getFilePath (const String &pathToFile, SubDirectories subDir) const |
creates a absolute path from the pathToFile and the specified sub directory. More... | |
const String | getFileReference (const String &absoluteFileName, SubDirectories dir) const |
Creates a reference string that can be used to obtain the file in the project directory. More... | |
Public Member Functions inherited from ControlledObject | |
ControlledObject (MainController *m) | |
Creates a new ControlledObject. More... | |
const MainController * | getMainController () const noexcept |
Provides read-only access to the main controller. More... | |
MainController * | getMainController () noexcept |
Provides write access to the main controller. More... | |
Additional Inherited Members | |
Public Types inherited from FileHandlerBase | |
enum | SubDirectories { AudioFiles, Images, SampleMaps, UserPresets, Samples, Scripts , Presets, XMLPresetBackups, AdditionalSourceCode } |
The sub folders of each project folder. More... | |
Static Public Member Functions inherited from FileHandlerBase | |
static bool | isAbsolutePathCrossPlatform (const String &pathName) |
checks if this is a absolute path (including absolute win paths on OSX and absolute OSX paths on windows); | |
This class handles the file management inside HISE.
It assumes a working directory and supplies correct paths for all OSes relative to the project root folder.
void createRSAKey | ( | ) | const |
Fills the given array with the contents of the specified directory.
If 'sortByTime' is true, the most recent files will be the first items in the list.
bool isActive | ( | ) | const |
Checks if the ProjectHandler is active (if a directory is set).
|
inline |
Checks if a directory is redirected.