openshot-audio  0.1.7
juce_core.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the juce_core module of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission to use, copy, modify, and/or distribute this software for any purpose with
8  or without fee is hereby granted, provided that the above copyright notice and this
9  permission notice appear in all copies.
10 
11  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12  TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15  IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 
18  ------------------------------------------------------------------------------
19 
20  NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21  All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22  using any other modules, be sure to check that you also comply with their license.
23 
24  For more details, visit www.juce.com
25 
26  ==============================================================================
27 */
28 
29 #ifndef JUCE_CORE_H_INCLUDED
30 #define JUCE_CORE_H_INCLUDED
31 
32 #ifndef JUCE_MODULE_AVAILABLE_juce_core
33  /* If you fail to make sure that all your compile units are building JUCE with the same set of
34  option flags, then there's a risk that different compile units will treat the classes as having
35  different memory layouts, leading to very nasty memory corruption errors when they all get
36  linked together. That's why it's best to always include the Introjucer-generated AppConfig.h
37  file before any juce headers.
38 
39  Note that if you do have an AppConfig.h file and hit this warning, it means that it doesn't
40  contain the JUCE_MODULE_AVAILABLE_xxx flags, which are necessary for some inter-module
41  functionality to work correctly. In that case, you should either rebuild your AppConfig.h with
42  the latest introjucer, or fix it manually to contain these flags.
43  */
44  #ifdef _MSC_VER
45  #pragma message ("Have you included your AppConfig.h file before including the JUCE headers?")
46  #else
47  #warning "Have you included your AppConfig.h file before including the JUCE headers?"
48  #endif
49 #endif
50 
51 #ifdef _MSC_VER
52  #pragma warning (push)
53  // Disable warnings for long class names, padding, and undefined preprocessor definitions.
54  #pragma warning (disable: 4251 4786 4668 4820)
55  #ifdef __INTEL_COMPILER
56  #pragma warning (disable: 1125)
57  #endif
58 #endif
59 
60 //==============================================================================
62 
63 //=============================================================================
69 #ifndef JUCE_FORCE_DEBUG
70  //#define JUCE_FORCE_DEBUG 0
71 #endif
72 
73 //=============================================================================
85 #ifndef JUCE_LOG_ASSERTIONS
86  #if JUCE_ANDROID
87  #define JUCE_LOG_ASSERTIONS 1
88  #else
89  #define JUCE_LOG_ASSERTIONS 0
90  #endif
91 #endif
92 
93 //=============================================================================
99 #if JUCE_DEBUG && ! defined (JUCE_CHECK_MEMORY_LEAKS)
100  #define JUCE_CHECK_MEMORY_LEAKS 1
101 #endif
102 
103 //=============================================================================
109 #ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
110  #define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
111 #endif
112 
121 #ifndef JUCE_INCLUDE_ZLIB_CODE
122  #define JUCE_INCLUDE_ZLIB_CODE 1
123 #endif
124 
125 #ifndef JUCE_ZLIB_INCLUDE_PATH
126  #define JUCE_ZLIB_INCLUDE_PATH <zlib.h>
127 #endif
128 
135 #ifndef JUCE_USE_CURL
136  #define JUCE_USE_CURL 0
137 #endif
138 
139 
140 /* Config: JUCE_CATCH_UNHANDLED_EXCEPTIONS
141  If enabled, this will add some exception-catching code to forward unhandled exceptions
142  to your JUCEApplicationBase::unhandledException() callback.
143 */
144 #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
145  //#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
146 #endif
147 
148 #ifndef JUCE_STRING_UTF_TYPE
149  #define JUCE_STRING_UTF_TYPE 8
150 #endif
151 
152 //=============================================================================
153 //=============================================================================
154 
156 
157 namespace juce
158 {
159 
160 class StringRef;
161 class MemoryBlock;
162 class File;
163 class InputStream;
164 class OutputStream;
165 class DynamicObject;
166 class FileInputStream;
167 class FileOutputStream;
168 class XmlElement;
169 class JSONFormatter;
170 
172 extern JUCE_API void JUCE_CALLTYPE logAssertion (const char* file, int line) noexcept;
173 
174 #include "memory/juce_Memory.h"
176 #include "memory/juce_ByteOrder.h"
177 #include "memory/juce_Atomic.h"
179 
180 #if JUCE_MSVC
181  #pragma warning (push)
182  #pragma warning (disable: 4514 4996)
183 #endif
184 
189 
190 #if JUCE_MSVC
191  #pragma warning (pop)
192 #endif
193 
194 #include "text/juce_String.h"
195 #include "text/juce_StringRef.h"
196 #include "logging/juce_Logger.h"
199 #include "memory/juce_HeapBlock.h"
200 #include "memory/juce_MemoryBlock.h"
204 #include "memory/juce_Singleton.h"
206 #include "threads/juce_ScopedLock.h"
208 #include "maths/juce_Range.h"
212 #include "containers/juce_Array.h"
220 #include "text/juce_NewLine.h"
221 #include "text/juce_StringPool.h"
222 #include "text/juce_Identifier.h"
223 #include "text/juce_StringArray.h"
225 #include "text/juce_TextDiff.h"
227 #include "misc/juce_Result.h"
228 #include "containers/juce_Variant.h"
231 #include "containers/juce_HashMap.h"
232 #include "time/juce_RelativeTime.h"
233 #include "time/juce_Time.h"
241 #include "files/juce_File.h"
248 #include "files/juce_FileFilter.h"
251 #include "logging/juce_FileLogger.h"
252 #include "javascript/juce_JSON.h"
254 #include "maths/juce_BigInteger.h"
255 #include "maths/juce_Expression.h"
256 #include "maths/juce_Random.h"
257 #include "misc/juce_Uuid.h"
259 #include "system/juce_SystemStats.h"
264 #include "threads/juce_Process.h"
265 #include "threads/juce_SpinLock.h"
267 #include "threads/juce_Thread.h"
269 #include "threads/juce_ThreadPool.h"
274 #include "network/juce_IPAddress.h"
275 #include "network/juce_MACAddress.h"
276 #include "network/juce_NamedPipe.h"
277 #include "network/juce_Socket.h"
278 #include "network/juce_URL.h"
281 #include "xml/juce_XmlDocument.h"
282 #include "xml/juce_XmlElement.h"
285 #include "zip/juce_ZipFile.h"
288 
289 }
290 
291 #if JUCE_MSVC
292  #pragma warning (pop)
293 #endif
294 
295 #endif // JUCE_CORE_H_INCLUDED
juce_CharPointer_UTF8.h
juce_JSON.h
juce_OutputStream.h
juce_AbstractFifo.h
juce_SharedResourcePointer.h
juce_GZIPDecompressorInputStream.h
juce_TimeSliceThread.h
juce_HashMap.h
juce_NamedValueSet.h
juce_WeakReference.h
juce_DirectoryIterator.h
juce_Identifier.h
juce_FileSearchPath.h
juce_Atomic.h
juce_LinkedListPointer.h
juce_WaitableEvent.h
juce_ScopedWriteLock.h
MemoryBlock
Definition: juce_MemoryBlock.h:38
InputStream
Definition: juce_InputStream.h:41
juce_RelativeTime.h
juce_NewLine.h
juce_MemoryInputStream.h
juce_ReferenceCountedArray.h
JUCE_API
#define JUCE_API
Definition: juce_StandardHeader.h:139
juce_BigInteger.h
juce_Thread.h
juce_CharPointer_UTF32.h
juce_SparseSet.h
juce_FileFilter.h
JSONFormatter
Definition: juce_JSON.cpp:328
juce_FileInputStream.h
juce_XmlElement.h
juce_InterProcessLock.h
juce_ScopedPointer.h
juce_ThreadPool.h
juce_Javascript.h
juce_DynamicObject.h
juce_LeakedObjectDetector.h
juce_ChildProcess.h
noexcept
#define noexcept
Definition: juce_CompilerSupport.h:141
juce_OwnedArray.h
juce_Result.h
juce_SpinLock.h
File
Definition: juce_File.h:45
juce::logAssertion
JUCE_API void JUCE_CALLTYPE logAssertion(const char *file, int line) noexcept
juce_Singleton.h
juce_FileInputSource.h
juce_File.h
juce_CharPointer_ASCII.h
juce_HighResolutionTimer.h
juce_NormalisableRange.h
juce_MACAddress.h
juce_Memory.h
JUCE_CALLTYPE
#define JUCE_CALLTYPE
Definition: juce_PlatformDefs.h:50
juce_DynamicLibrary.h
juce_String.h
juce_ScopedValueSetter.h
juce_ReadWriteLock.h
juce_StringPairArray.h
juce_StringArray.h
juce_CriticalSection.h
juce_WildcardFileFilter.h
juce_ArrayAllocationBase.h
juce
Definition: juce_audio_basics.cpp:75
juce_ReferenceCountedObject.h
juce_CharPointer_UTF16.h
juce_Expression.h
juce_ContainerDeletePolicy.h
juce_SystemStats.h
juce_Uuid.h
juce_ScopedLock.h
juce_LocalisedStrings.h
juce_PerformanceCounter.h
juce_NamedPipe.h
juce_TemporaryFile.h
juce_Array.h
juce_SubregionStream.h
juce_MathsFunctions.h
juce_MemoryOutputStream.h
juce_PropertySet.h
juce_FileOutputStream.h
juce_Logger.h
juce::juce_isRunningUnderDebugger
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
Definition: juce_android_Threads.cpp:65
juce_Random.h
juce_OptionalScopedPointer.h
juce_MemoryMappedFile.h
juce_InputStream.h
XmlElement
Definition: juce_XmlElement.h:142
juce_Range.h
juce_InputSource.h
juce_WindowsRegistry.h
OutputStream
Definition: juce_OutputStream.h:42
juce_MemoryBlock.h
juce_ByteOrder.h
FileInputStream
Definition: juce_FileInputStream.h:39
juce_Socket.h
juce_ZipFile.h
juce_ScopedReadLock.h
juce_IPAddress.h
juce_BufferedInputStream.h
juce_FileLogger.h
juce_StandardHeader.h
juce_XmlDocument.h
juce_TextDiff.h
StringRef
Definition: juce_StringRef.h:65
FileOutputStream
Definition: juce_FileOutputStream.h:39
juce_SortedSet.h
juce_ElementComparator.h
juce_Time.h
DynamicObject
Definition: juce_DynamicObject.h:44
juce_StringRef.h
juce_TargetPlatform.h
juce_HeapBlock.h
juce_URL.h
juce_Variant.h
juce_GZIPCompressorOutputStream.h
juce_UnitTest.h
juce_CharacterFunctions.h
juce_StringPool.h
juce_Process.h
juce_ThreadLocalValue.h