This class wraps a string that is generally held in a 'source' property, and which is a reference to some sort of file, either in the form of a local filename or as a project ID that can be resolved.
More...
#include <tracktion_SourceFileReference.h>
This class wraps a string that is generally held in a 'source' property, and which is a reference to some sort of file, either in the form of a local filename or as a project ID that can be resolved.
◆ PathStyle
| Enumerator |
|---|
| chooseBest | |
| alwaysRelative | |
| alwaysAbsolute | |
◆ SourceFileReference()
| engine::SourceFileReference::SourceFileReference |
( |
Edit & |
, |
|
|
juce::ValueTree & |
, |
|
|
const juce::Identifier & |
prop |
|
) |
| |
◆ ~SourceFileReference()
| engine::SourceFileReference::~SourceFileReference |
( |
| ) |
|
◆ getFile()
| juce::File engine::SourceFileReference::getFile |
( |
| ) |
const |
◆ isUsingProjectReference()
| bool engine::SourceFileReference::isUsingProjectReference |
( |
| ) |
const |
◆ getSourceProjectItemRef()
| ProjectItemRef engine::SourceFileReference::getSourceProjectItemRef |
( |
| ) |
const |
◆ getSourceProjectItem()
◆ setToFile()
| void engine::SourceFileReference::setToFile |
( |
const juce::File & |
, |
|
|
PathStyle |
, |
|
|
bool |
allowProjectItems |
|
) |
| |
Sets this source to reference the given file.
If allowProjectItems is true and the edit is in a file-based project, finds or creates a ProjectItem. Otherwise stores a direct file path using the given PathStyle.
◆ setToProjectFileReference()
| void engine::SourceFileReference::setToProjectFileReference |
( |
ProjectItemRef |
| ) |
|
◆ findPathFromFile()
| static juce::String engine::SourceFileReference::findPathFromFile |
( |
Edit & |
, |
|
|
const juce::File & |
, |
|
|
bool |
useRelativePath |
|
) |
| |
|
static |
◆ findFileFromString()
| static juce::File engine::SourceFileReference::findFileFromString |
( |
Edit & |
, |
|
|
const juce::String & |
source |
|
) |
| |
|
static |
◆ edit
| Edit& engine::SourceFileReference::edit |
◆ source
| juce::CachedValue<juce::String> engine::SourceFileReference::source |
The documentation for this class was generated from the following file: