#include <SQLRegistrationStore.h>
Definition at line 33 of file SQLRegistrationStore.h.
Public Member Functions | |
SQLRegistrationStore (oasys::SQLImplementation *impl, const char *table_name="registration") | |
Constructor. | |
virtual | ~SQLRegistrationStore () |
Destructor. | |
virtual void | load (RegistrationList *reg_list) |
Load in the whole database of registrations, populating the given list. | |
virtual bool | add (Registration *reg) |
Add a new registration to the database. | |
virtual bool | del (Registration *reg) |
Remove the registration from the database, returns true if successful, false on error. | |
virtual bool | update (Registration *reg) |
Update the registration in the database. | |
Protected Attributes | |
SQLStore * | store_ |
dtn::SQLRegistrationStore::SQLRegistrationStore | ( | oasys::SQLImplementation * | impl, | |
const char * | table_name = "registration" | |||
) |
Constructor.
virtual dtn::SQLRegistrationStore::~SQLRegistrationStore | ( | ) | [virtual] |
Destructor.
virtual void dtn::SQLRegistrationStore::load | ( | RegistrationList * | reg_list | ) | [virtual] |
Load in the whole database of registrations, populating the given list.
virtual bool dtn::SQLRegistrationStore::add | ( | Registration * | reg | ) | [virtual] |
Add a new registration to the database.
Returns true if the registration is successfully added, false on error.
virtual bool dtn::SQLRegistrationStore::del | ( | Registration * | reg | ) | [virtual] |
Remove the registration from the database, returns true if successful, false on error.
virtual bool dtn::SQLRegistrationStore::update | ( | Registration * | reg | ) | [virtual] |
Update the registration in the database.
Returns true on success, false if there's no matching registration or on error.
SQLStore* dtn::SQLRegistrationStore::store_ [protected] |
Definition at line 71 of file SQLRegistrationStore.h.