>If you really want to have a version of await_notification in your
>trigger, of course that's easy enough to add. Just derive your own class
>from pqxx::trigger that adds the function:
> void wait_notification() { m_Conn.await_notification(); }
I think the
void wait_notification() { Conn()->await_notification(); }
is right, because m_Conn is private and I have no access to it in derived
class.
And by the way I have a request here: could you implement empty constructor
for pqxx::trigger:
trigger() {};
setName(string &N) {m_Name=N;};
setConn(connection &C) {m_Conn=C; m_Conn.AddTrigger(this);};
for convenience. Any way, 'trigger' begin to function only after
m_Conn.AddTrigger function call, so I will able to make my own custom
constructor and create Conn object within. Now I forced to make some external
constructions and send previously formed connection object to trigger
constructor, but I want to execute all my procedures within derived class and
to reduce the code.
>Then derive your concrete trigger classes from that.
>(BTW, don't use headers such as <stdio.h> in C++; use <cstdio> instead)
Thanks, its my very old 'C' habit ;-) Need to see new header names.
Aleksey.
--
С уважением,
Алексей.
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general