LMMS
Loading...
Searching...
No Matches
juce_FileSearchPath.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23namespace juce
24{
25
26//==============================================================================
35{
36public:
37 //==============================================================================
39 FileSearchPath() = default;
40
42 ~FileSearchPath() = default;
43
51 FileSearchPath (const String& path);
52
55
57 FileSearchPath& operator= (const FileSearchPath&);
58
64 FileSearchPath& operator= (const String& path);
65
66 //==============================================================================
70 int getNumPaths() const;
71
76 File operator[] (int index) const;
77
79 String toString() const;
80
81 //==============================================================================
87 void add (const File& directoryToAdd,
88 int insertIndex = -1);
89
94 bool addIfNotAlreadyThere (const File& directoryToAdd);
95
97 void remove (int indexToRemove);
98
102 void addPath (const FileSearchPath&);
103
112
115
116 //==============================================================================
129 Array<File> findChildFiles (int whatToLookFor,
130 bool searchRecursively,
131 const String& wildCardPattern = "*") const;
132
138 int findChildFiles (Array<File>& results,
139 int whatToLookFor,
140 bool searchRecursively,
141 const String& wildCardPattern = "*") const;
142
143 //==============================================================================
159 bool isFileInPath (const File& fileToCheck,
160 bool checkRecursively) const;
161
162private:
163 //==============================================================================
165
166 void init (const String&);
167
169};
170
171} // namespace juce
Definition juce_Array.h:56
Definition juce_File.h:45
bool isFileInPath(const File &fileToCheck, bool checkRecursively) const
Definition juce_FileSearchPath.cpp:150
void add(const File &directoryToAdd, int insertIndex=-1)
Definition juce_FileSearchPath.cpp:80
void remove(int indexToRemove)
Definition juce_FileSearchPath.cpp:95
void removeNonExistentPaths()
Definition juce_FileSearchPath.cpp:125
void addPath(const FileSearchPath &)
Definition juce_FileSearchPath.cpp:100
String toString() const
Definition juce_FileSearchPath.cpp:69
int getNumPaths() const
Definition juce_FileSearchPath.cpp:59
~FileSearchPath()=default
StringArray directories
Definition juce_FileSearchPath.h:164
void removeRedundantPaths()
Definition juce_FileSearchPath.cpp:106
FileSearchPath()=default
bool addIfNotAlreadyThere(const File &directoryToAdd)
Definition juce_FileSearchPath.cpp:85
Array< File > findChildFiles(int whatToLookFor, bool searchRecursively, const String &wildCardPattern="*") const
Definition juce_FileSearchPath.cpp:132
Definition juce_StringArray.h:35
Definition juce_String.h:53
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition juce_LeakedObjectDetector.h:138
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
ZCONST uch * init
Definition extract.c:2392