LMMS
Loading...
Searching...
No Matches
TemporaryFile.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the Water library.
5 Copyright (c) 2016 ROLI Ltd.
6 Copyright (C) 2017-2022 Filipe Coelho <falktx@falktx.com>
7
8 Permission is granted to use this software under the terms of the ISC license
9 http://www.isc.org/downloads/software-support-policy/isc-license/
10
11 Permission to use, copy, modify, and/or distribute this software for any
12 purpose with or without fee is hereby granted, provided that the above
13 copyright notice and this permission notice appear in all copies.
14
15 THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
16 TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
18 OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
19 USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
21 OF THIS SOFTWARE.
22
23 ==============================================================================
24*/
25
26#ifndef WATER_TEMPORARYFILE_H_INCLUDED
27#define WATER_TEMPORARYFILE_H_INCLUDED
28
29#include "TemporaryFile.h"
30#include "File.h"
31
32namespace water {
33
34//==============================================================================
73{
74public:
75 //==============================================================================
84
85 //==============================================================================
93 TemporaryFile (const String& suffix = String(),
94 int optionFlags = 0);
95
112 int optionFlags = 0);
113
122 const File& temporaryFile);
123
131
132 //==============================================================================
135
138
156
160 bool deleteTemporaryFile() const;
161
162
163private:
164 //==============================================================================
166
168};
169
170}
171
172#endif // WATER_TEMPORARYFILE_H_INCLUDED
#define CARLA_DECLARE_NON_COPYABLE(ClassName)
Definition CarlaDefines.h:242
#define noexcept
Definition DistrhoDefines.h:72
Definition File.h:50
Definition String.h:48
const File & getFile() const noexcept
Definition TemporaryFile.h:134
~TemporaryFile()
Definition TemporaryFile.cpp:65
bool deleteTemporaryFile() const
Definition TemporaryFile.cpp:109
TemporaryFile(const String &suffix=String(), int optionFlags=0)
Definition TemporaryFile.cpp:42
const File targetFile
Definition TemporaryFile.h:165
OptionFlags
Definition TemporaryFile.h:77
@ putNumbersInBrackets
Definition TemporaryFile.h:80
@ useHiddenFile
Definition TemporaryFile.h:78
const File & getTargetFile() const noexcept
Definition TemporaryFile.h:137
const File temporaryFile
Definition TemporaryFile.h:165
bool overwriteTargetFileWithTemporary() const
Definition TemporaryFile.cpp:82
Definition AudioSampleBuffer.h:33
#define const
Definition zconf.h:137