Loading...
Searching...
No Matches
connection-notification_receiver.hxx
#include <pqxx/internal/callgate.hxx>
#include "pqxx/connection.hxx"
namespace pqxx
{
class notification_receiver;
}
namespace pqxx::internal::gate
{
class PQXX_PRIVATE connection_notification_receiver : callgate<connection>
{
friend class pqxx::notification_receiver;
connection_notification_receiver(reference x) : super(x) {}
void add_receiver(notification_receiver *receiver)
{
home().add_receiver(receiver);
}
void remove_receiver(notification_receiver *receiver) noexcept
{
home().remove_receiver(receiver);
}
};
} // namespace pqxx::internal::gate
pqxx::connection
Connection to a database.
Definition connection.hxx:279
pqxx::internal::callgate
Base class for call gates.
Definition callgate.hxx:55
pqxx::internal::gate::connection_notification_receiver
Definition connection-notification_receiver.hxx:15
pqxx::notification_receiver
Definition notification.hxx:57
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27