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

#include <DBConnection.h>

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

Public Member Functions

 ~ConnectionPtr () override
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ConnectionPtrGet (AudacityProject &project)
 
static const ConnectionPtrGet (const AudacityProject &project)
 

Public Attributes

Connection mpConnection
 

Detailed Description

Definition at line 138 of file DBConnection.h.

Constructor & Destructor Documentation

◆ ~ConnectionPtr()

ConnectionPtr::~ConnectionPtr ( )
override

Definition at line 704 of file DBConnection.cpp.

705{
706 wxASSERT_MSG(!mpConnection, wxT("Project file was not closed at shutdown"));
707 if (mpConnection)
708 {
709 wxLogMessage("Project file was not closed at connection destruction");
710 }
711}
wxT("CloseDown"))
Connection mpConnection
Definition: DBConnection.h:148

References mpConnection, and wxT().

Here is the call graph for this function:

Member Function Documentation

◆ Get() [1/2]

ConnectionPtr & ConnectionPtr::Get ( AudacityProject project)
static

Definition at line 724 of file DBConnection.cpp.

725{
726 auto &result =
727 project.AttachedObjects::Get< ConnectionPtr >( sConnectionPtrKey );
728 return result;
729}
static const AudacityProject::AttachedObjects::RegisteredFactory sConnectionPtrKey
const auto project

References project, and sConnectionPtrKey.

Referenced by ProjectFileIO::CurrConn(), Get(), and ProjectFileIO::HasConnection().

Here is the caller graph for this function:

◆ Get() [2/2]

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

Definition at line 731 of file DBConnection.cpp.

732{
733 return Get( const_cast< AudacityProject & >( project ) );
734}
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 ConnectionPtr & Get(AudacityProject &project)

References Get(), and project.

Here is the call graph for this function:

Member Data Documentation

◆ mpConnection

Connection ConnectionPtr::mpConnection

Definition at line 148 of file DBConnection.h.

Referenced by ~ConnectionPtr().


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