tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_SourceFileReference.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14//==============================================================================
21{
22public:
25
26 //==============================================================================
27 Edit& edit;
29
30 juce::File getFile() const;
31 bool isUsingProjectReference() const;
32 ProjectItemID getSourceProjectItemID() const;
33 ProjectItem::Ptr getSourceProjectItem() const;
34
35 void setToDirectFileReference (const juce::File&, bool useRelativePath);
36
42 void setToProjectFileReference (const juce::File&, bool updateProjectItem);
43
45
46 static juce::String findPathFromFile (Edit&, const juce::File&, bool useRelativePath);
47 static juce::File findFileFromString (Edit&, const juce::String& source);
48
49private:
50 juce::ValueTree state;
51
53};
54
55
56}} // namespace tracktion { inline namespace engine
The Tracktion Edit class!
An ID representing one of the items in a Project.
This class wraps a string that is generally held in a 'source' property, and which is a reference to ...
void setToProjectFileReference(const juce::File &, bool updateProjectItem)
Points this source at a new file via a project item.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)