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 320 of file ProjectFileIO.h.

Constructor & Destructor Documentation

◆ InvisibleTemporaryProject()

InvisibleTemporaryProject::InvisibleTemporaryProject ( )

Definition at line 2632 of file ProjectFileIO.cpp.

◆ ~InvisibleTemporaryProject()

InvisibleTemporaryProject::~InvisibleTemporaryProject ( )

Definition at line 2637 of file ProjectFileIO.cpp.

2644{
2645}
2646
2648{
2649 auto &projectFileIO = ProjectFileIO::Get( Project() );
2650 projectFileIO.SetBypass();
2651 auto &tracks = TrackList::Get( Project() );
2652 tracks.Clear();
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:487

Member Function Documentation

◆ Project()

AudacityProject & InvisibleTemporaryProject::Project ( )
inline

Definition at line 325 of file ProjectFileIO.h.

326 {
327 return *mpProject;
328 }

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 330 of file ProjectFileIO.h.


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