Audacity 3.2.0
Dependencies.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4 Audacity(R) is copyright (c) 1999-2008 Audacity Team.
5 License: GPL v2 or later. See License.txt.
6
7 Dependencies.h
8
9 Dominic Mazzoni
10 Vaughan Johnson
11
12**********************************************************************/
13
14#ifndef __AUDACITY_DEPENDENCIES__
15#define __AUDACITY_DEPENDENCIES__
16
17#include <list>
18#include "MemoryX.h"
19#include "wxFileNameWrapper.h" // member variable
20
21class AudacityProject;
22
24{
25public:
28 wxLongLong byteCount, bool bOriginalExists)
29 : mFileName(std::move(fileName))
30 , mByteCount(byteCount)
31 , mbOriginalExists(bOriginalExists)
32 {
33 }
34 AliasedFile(const AliasedFile &that) = default;
36 {
37 if(this != &that) {
38 mFileName = std::move(that.mFileName);
39 mByteCount = that.mByteCount;
40 mbOriginalExists = that.mbOriginalExists;
41 }
42 return *this;
43 }
44
46 wxLongLong mByteCount{}; // if stored as current default sample format
48};
49
50// use list, not vector, because we need to take addresses of items in the container
51// before it has grown to full size.
52using AliasedFileArray = std::list<AliasedFile>;
53
54
55// Checks for alias block files, modifies the project if the
56// user requests it, and returns True if the user continues.
57// Returns false if the user clicks Cancel, meaning that they do
58// not want to go ahead with the Save/Save As operation.
60 bool isSaving);
61
62// Returns a list of aliased files associated with a project.
64 AliasedFileArray &outAliasedFiles);
65
66#endif
std::list< AliasedFile > AliasedFileArray
Definition: Dependencies.h:52
bool ShowDependencyDialogIfNeeded(AudacityProject *project, bool isSaving)
void FindDependencies(AudacityProject *project, AliasedFileArray &outAliasedFiles)
const auto project
An audio file that is referenced (pointed into) directly from an Audacity .aup file rather than Audac...
Definition: Dependencies.h:24
bool mbOriginalExists
Definition: Dependencies.h:47
wxLongLong mByteCount
Definition: Dependencies.h:46
AliasedFile & operator=(AliasedFile &&that)
Definition: Dependencies.h:35
AliasedFile(wxFileNameWrapper &&fileName, wxLongLong byteCount, bool bOriginalExists)
Definition: Dependencies.h:27
wxFileNameWrapper mFileName
Definition: Dependencies.h:45
AliasedFile(const AliasedFile &that)=default
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
STL namespace.