19 #ifndef PQXX_H_NOTIFY_LISTEN
20 #define PQXX_H_NOTIFY_LISTEN
22 #include "pqxx/compiler-public.hxx"
23 #include "pqxx/compiler-internal-pre.hxx"
25 #include "pqxx/notification"
30 class connection_base;
31 class notify_listener;
41 const PGSTD::string &channel_name,
47 virtual void operator()(
const PGSTD::string &,
int backend_pid);
59 public PGSTD::unary_function<int, void>
64 const PGSTD::string &
name()
const {
return m_forwarder.channel(); }
65 virtual void operator()(
int be_pid) =0;
79 #include "pqxx/compiler-internal-post.hxx"
The home of all libpqxx classes, functions, templates, etc.
Definition: basic_connection.hxx:35
Internal helper class to support old-style, payloadless notifications.
Definition: notify-listen.hxx:36
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:151
connection_base & Conn() const
Definition: notify-listen.hxx:69
Obsolete notification receiver.
Definition: notify-listen.hxx:58
virtual void operator()(const std::string &, int backend_pid)
Overridable: action to invoke when notification arrives.
Definition: notify-listen.cxx:26
notify_listener_forwarder(connection_base &c, const std::string &channel_name, notify_listener *wrappee)
Definition: notify-listen.hxx:39
const std::string & name() const
Definition: notify-listen.hxx:64
Definition: notification.hxx:59
connection_base & conn() const
Definition: notify-listen.hxx:70