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

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

Definition at line 704 of file DBConnection.cpp.

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

Definition at line 724 of file DBConnection.cpp.

726 auto &result =
727 project.AttachedObjects::Get< ConnectionPtr >( sConnectionPtrKey );
728 return result;
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)

Definition at line 731 of file DBConnection.cpp.

733 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 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: