Public Member Functions | List of all members
ProjectHandler Class Reference

This class handles the file management inside HISE. More...

Inheritance diagram for ProjectHandler:
FileHandlerBase ControlledObject

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 MainControllergetMainController () const noexcept
 Provides read-only access to the main controller. More...
 
MainControllergetMainController () 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);
 

Detailed Description

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.

Member Function Documentation

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).

bool isRedirected ( ProjectHandler::SubDirectories  dir) const
inline

Checks if a directory is redirected.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.