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

Constructor & Destructor Documentation

◆ InvisibleTemporaryProject()

InvisibleTemporaryProject::InvisibleTemporaryProject ( )

Definition at line 2648 of file ProjectFileIO.cpp.

◆ ~InvisibleTemporaryProject()

InvisibleTemporaryProject::~InvisibleTemporaryProject ( )

Definition at line 2653 of file ProjectFileIO.cpp.

2660{
2661}
2662
2664{
2665 auto &projectFileIO = ProjectFileIO::Get( Project() );
2666 projectFileIO.SetBypass();
2667 auto &tracks = TrackList::Get( Project() );
2668 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:347

Member Function Documentation

◆ Project()

AudacityProject & InvisibleTemporaryProject::Project ( )
inline

Definition at line 345 of file ProjectFileIO.h.

346 {
347 return *mpProject;
348 }

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


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