#include <places.h>
Inheritance diagram for PlaceConvert:
Public Types | |
typedef pqxxobject::rowconvert< Place > | row_base |
Underlying row conversion type. | |
Public Member Functions | |
PlaceConvert (pqxx::connection &connection, pqxx::transaction<> *&transaction) | |
The constructor. | |
Place * | operator() (pqxx::result::const_iterator row) |
Convert a row of an SQL result set into a Place object. | |
void | operator() (Place &place, row_base::operation_type operation) |
Convert a Place object into an SQL query. |
This class is a function object (functor) for use either as a standalone object or as a class template parameter.
Definition at line 102 of file places.h.
|
Underlying row conversion type.
Definition at line 106 of file places.h. Referenced by PlaceConvert(). |
|
The constructor.
Definition at line 83 of file places.cc. References row_base. |
|
Convert a Place object into an SQL query. This allows insertion, updating and deletion of rows.
Definition at line 100 of file places.cc. References Place::get_gridref(), Place::get_id(), Place::get_name(), pqxxobject::rowconvert< Place >::OPERATION_DELETE, pqxxobject::rowconvert< Place >::OPERATION_INSERT, pqxxobject::rowconvert< Place >::OPERATION_UPDATE, and pqxxobject::transaction::perform(). |
|
Convert a row of an SQL result set into a Place object.
Implements pqxxobject::rowconvert< Place >. Definition at line 90 of file places.cc. References Place::m_gridref, Place::m_id, and Place::m_name. |