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 136 of file DBConnection.h.

Constructor & Destructor Documentation

◆ ~ConnectionPtr()

ConnectionPtr::~ConnectionPtr ( )
override

Definition at line 694 of file DBConnection.cpp.

695{
696 wxASSERT_MSG(!mpConnection, wxT("Project file was not closed at shutdown"));
697 if (mpConnection)
698 {
699 wxLogMessage("Project file was not closed at connection destruction");
700 }
701}
Connection mpConnection
Definition: DBConnection.h:146

References mpConnection.

Member Function Documentation

◆ Get() [1/2]

ConnectionPtr & ConnectionPtr::Get ( AudacityProject project)
static

Definition at line 714 of file DBConnection.cpp.

715{
716 auto &result =
717 project.AttachedObjects::Get< ConnectionPtr >( sConnectionPtrKey );
718 return result;
719}
static const AudacityProject::AttachedObjects::RegisteredFactory sConnectionPtrKey

References 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 721 of file DBConnection.cpp.

722{
723 return Get( const_cast< AudacityProject & >( project ) );
724}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
static ConnectionPtr & Get(AudacityProject &project)

References Get().

Here is the call graph for this function:

Member Data Documentation

◆ mpConnection

Connection ConnectionPtr::mpConnection

Definition at line 146 of file DBConnection.h.

Referenced by ~ConnectionPtr().


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