OpenShot Library | OpenShotAudio
0.2.2
juce_DeletedAtShutdown.h
1
2
/** @weakgroup juce_events-messages
3
* @{
4
*/
5
/*
6
==============================================================================
7
8
This file is part of the JUCE library.
9
Copyright (c) 2017 - ROLI Ltd.
10
11
JUCE is an open source library subject to commercial or open-source
12
licensing.
13
14
The code included in this file is provided under the terms of the ISC license
15
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
16
To use, copy, modify, and/or distribute this software for any purpose with or
17
without fee is hereby granted provided that the above copyright notice and
18
this permission notice appear in all copies.
19
20
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22
DISCLAIMED.
23
24
==============================================================================
25
*/
26
27
namespace
juce
28
{
29
30
//==============================================================================
31
/**
32
Classes derived from this will be automatically deleted when the application exits.
33
34
After JUCEApplicationBase::shutdown() has been called, any objects derived from
35
DeletedAtShutdown which are still in existence will be deleted in the reverse
36
order to that in which they were created.
37
38
So if you've got a singleton and don't want to have to explicitly delete it, just
39
inherit from this and it'll be taken care of.
40
41
@tags{Events}
42
*/
43
class
JUCE_API
DeletedAtShutdown
44
{
45
protected
:
46
/** Creates a DeletedAtShutdown object. */
47
DeletedAtShutdown
();
48
49
/** Destructor.
50
51
It's ok to delete these objects explicitly - it's only the ones left
52
dangling at the end that will be deleted automatically.
53
*/
54
virtual
~
DeletedAtShutdown
();
55
56
57
public
:
58
/** Deletes all extant objects.
59
60
This shouldn't be used by applications, as it's called automatically
61
in the shutdown code of the JUCEApplicationBase class.
62
*/
63
static
void
deleteAll();
64
65
private
:
66
JUCE_DECLARE_NON_COPYABLE (
DeletedAtShutdown
)
67
};
68
69
}
// namespace juce
70
71
/** @}*/
juce::DeletedAtShutdown
Classes derived from this will be automatically deleted when the application exits.
Definition:
juce_DeletedAtShutdown.h:44
JUCE_API
#define JUCE_API
This macro is added to all JUCE public class declarations.
Definition:
juce_StandardHeader.h:146
juce_events
messages
juce_DeletedAtShutdown.h
Generated on Fri Mar 4 2022 21:56:03 for OpenShot Library | OpenShotAudio by
1.9.1