#include <places.h>
Inheritance diagram for PlaceTable:
Public Types | |
typedef pqxxobject::table< Place > | table_base |
Underlying table type. | |
enum | sort_order { ORDER_ID, ORDER_NAME, ORDER_GRIDREF } |
Sort order. More... | |
Public Member Functions | |
PlaceTable (pqxxobject::transaction &tran) | |
The constructor. | |
virtual | ~PlaceTable () |
The destructor. | |
row_list_ptr | get_list (sort_order order=ORDER_NAME) |
Get a list of all places. | |
row_ptr | find (int place_id) |
Find a single place by its ID number. | |
row_ptr | find_name (const std::string &name) |
Find a place by its name. | |
row_list_ptr | find_gridref (const std::string &gridref) |
Find places by their grid reference. |
This class represents the places database table, and may be used to obtain information about places held in the place table. It may be used to add new places, update information about existing places, and remove places.
Definition at line 147 of file places.h.
|
Underlying table type.
Definition at line 151 of file places.h. Referenced by PlaceTable(). |
|
Sort order.
|
|
The constructor.
Definition at line 200 of file places.cc. References table_base. |
|
The destructor.
|
|
Find a single place by its ID number.
Definition at line 229 of file places.cc. References pqxxobject::table< Place >::find_one(). |
|
Find places by their grid reference. Because there is no garuantee that the grid reference is unique, this function may return zero, one or many places.
Definition at line 250 of file places.cc. References pqxxobject::table< Place >::find_many(). |
|
Find a place by its name.
Definition at line 240 of file places.cc. References pqxxobject::table< Place >::find_one(). |
|
Get a list of all places.
Definition at line 210 of file places.cc. References pqxxobject::table< Place >::find_many(), ORDER_GRIDREF, ORDER_ID, and ORDER_NAME. |