libpqxx
The C++ client library for PostgreSQL
connection-notification_receiver.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 #include "pqxx/connection.hxx"
4 
5 
6 namespace pqxx
7 {
8 class notification_receiver;
9 }
10 
11 
12 namespace pqxx::internal::gate
13 {
14 class 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
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Definition: connection-notification_receiver.hxx:14
Definition: notification.hxx:56
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
Connection to a database.
Definition: connection.hxx:278