Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ImportExport Class Referencefinal

#include <ImportExport.h>

Inheritance diagram for ImportExport:
[legend]
Collaboration diagram for ImportExport:
[legend]

Public Member Functions

 ImportExport ()
 
 ImportExport (const ImportExport &)=delete
 
ImportExportoperator= (const ImportExport &)=delete
 
double GetPreferredExportRate () const
 
void SetPreferredExportRate (double rate)
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ImportExportGet (AudacityProject &project)
 
static const ImportExportGet (const AudacityProject &project)
 

Static Public Attributes

static constexpr double InvalidRate = 0
 

Private Attributes

double mExportRate {InvalidRate}
 

Detailed Description

Definition at line 18 of file ImportExport.h.

Constructor & Destructor Documentation

◆ ImportExport() [1/2]

ImportExport::ImportExport ( )
default

◆ ImportExport() [2/2]

ImportExport::ImportExport ( const ImportExport )
delete

Member Function Documentation

◆ Get() [1/2]

ImportExport & ImportExport::Get ( AudacityProject project)
static

Definition at line 26 of file ImportExport.cpp.

27{
28 return project.AttachedObjects::Get<ImportExport>(sKey);
29}
static const AudacityProject::AttachedObjects::RegisteredFactory sKey
const auto project

References project, and sKey.

Referenced by ExportAudioDialog::ExportAudioDialog(), Get(), and ExportAudioDialog::OnExport().

Here is the caller graph for this function:

◆ Get() [2/2]

const ImportExport & ImportExport::Get ( const AudacityProject project)
static

Definition at line 31 of file ImportExport.cpp.

32{
33 return Get(const_cast<AudacityProject&>(project));
34}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
static ImportExport & Get(AudacityProject &project)

References Get(), and project.

Here is the call graph for this function:

◆ GetPreferredExportRate()

double ImportExport::GetPreferredExportRate ( ) const

Definition at line 38 of file ImportExport.cpp.

39{
40 return mExportRate;
41}
double mExportRate
Definition: ImportExport.h:34

References mExportRate.

Referenced by ExportAudioDialog::ExportAudioDialog().

Here is the caller graph for this function:

◆ operator=()

ImportExport & ImportExport::operator= ( const ImportExport )
delete

◆ SetPreferredExportRate()

void ImportExport::SetPreferredExportRate ( double  rate)

Definition at line 43 of file ImportExport.cpp.

44{
45 assert(rate > 0 || rate == InvalidRate);
46 if(rate > 0 || rate == InvalidRate)
47 mExportRate = rate;
48}
static constexpr double InvalidRate
Definition: ImportExport.h:21

References InvalidRate, and mExportRate.

Referenced by ExportAudioDialog::OnExport().

Here is the caller graph for this function:

Member Data Documentation

◆ InvalidRate

constexpr double ImportExport::InvalidRate = 0
staticconstexpr

Definition at line 21 of file ImportExport.h.

Referenced by ExportAudioDialog::ExportAudioDialog(), and SetPreferredExportRate().

◆ mExportRate

double ImportExport::mExportRate {InvalidRate}
private

Definition at line 34 of file ImportExport.h.

Referenced by GetPreferredExportRate(), and SetPreferredExportRate().


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