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:
Collaboration diagram for ImportExport:

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 ( )

◆ ImportExport() [2/2]

ImportExport::ImportExport ( const ImportExport )

Member Function Documentation

◆ Get() [1/2]

ImportExport & ImportExport::Get ( AudacityProject project)

Definition at line 26 of file ImportExport.cpp.

28 return project.AttachedObjects::Get<ImportExport>(sKey);
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)

Definition at line 31 of file ImportExport.cpp.

33 return Get(const_cast<AudacityProject&>(project));
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.

40 return mExportRate;
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 )

◆ SetPreferredExportRate()

void ImportExport::SetPreferredExportRate ( double  rate)

Definition at line 43 of file ImportExport.cpp.

45 assert(rate > 0 || rate == InvalidRate);
46 if(rate > 0 || rate == InvalidRate)
47 mExportRate = rate;
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

Definition at line 21 of file ImportExport.h.

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

◆ mExportRate

double ImportExport::mExportRate {InvalidRate}

Definition at line 34 of file ImportExport.h.

Referenced by GetPreferredExportRate(), and SetPreferredExportRate().

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