libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
connection-notification_receiver.hxx
1#include <pqxx/internal/callgate.hxx>
2
3#include "pqxx/connection.hxx"
4
5
6namespace pqxx
7{
8class notification_receiver;
9}
10
11
12namespace pqxx::internal::gate
13{
14class PQXX_PRIVATE connection_notification_receiver : callgate<connection>
15{
16 friend class pqxx::notification_receiver;
17
19
20 void add_receiver(notification_receiver *receiver)
21 {
22 home().add_receiver(receiver);
23 }
24 void remove_receiver(notification_receiver *receiver) noexcept
25 {
26 home().remove_receiver(receiver);
27 }
28};
29} // namespace pqxx::internal::gate
Connection to a database.
Definition connection.hxx:230
Base class for call gates.
Definition callgate.hxx:55
Definition connection-notification_receiver.hxx:15
Definition notification.hxx:57
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27