Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
InvisibleTemporaryProject Class Reference

Makes a temporary project that doesn't display on the screen. More...

#include <ProjectFileIO.h>

Collaboration diagram for InvisibleTemporaryProject:
[legend]

Public Member Functions

 InvisibleTemporaryProject ()
 
 ~InvisibleTemporaryProject ()
 
AudacityProjectProject ()
 

Private Attributes

std::shared_ptr< AudacityProjectmpProject
 

Detailed Description

Makes a temporary project that doesn't display on the screen.

Definition at line 338 of file ProjectFileIO.h.

Constructor & Destructor Documentation

◆ InvisibleTemporaryProject()

InvisibleTemporaryProject::InvisibleTemporaryProject ( )

Definition at line 2641 of file ProjectFileIO.cpp.

◆ ~InvisibleTemporaryProject()

InvisibleTemporaryProject::~InvisibleTemporaryProject ( )

Definition at line 2646 of file ProjectFileIO.cpp.

2653{
2654}
2655
2657{
2658 auto &projectFileIO = ProjectFileIO::Get( Project() );
2659 projectFileIO.SetBypass();
2660 auto &tracks = TrackList::Get( Project() );
2661 tracks.Clear();
const auto tracks
static std::shared_ptr< AudacityProject > Create()
Use this factory function.
Definition: Project.cpp:78
AudacityProject & Project()
std::shared_ptr< AudacityProject > mpProject
static ProjectFileIO & Get(AudacityProject &project)
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:314

Member Function Documentation

◆ Project()

AudacityProject & InvisibleTemporaryProject::Project ( )
inline

Definition at line 343 of file ProjectFileIO.h.

344 {
345 return *mpProject;
346 }

Referenced by ProjectFileManager::DiscardAutosave(), and anonymous_namespace{ProjectFileManager.cpp}::ImportProject().

Here is the caller graph for this function:

Member Data Documentation

◆ mpProject

std::shared_ptr<AudacityProject> InvisibleTemporaryProject::mpProject
private

Definition at line 348 of file ProjectFileIO.h.


The documentation for this class was generated from the following files: