Class responsible for moving of data from the Import table into appropriate tables in database. More...
#include <ImportTableProcessor.h>
Public Member Functions | |
ImportTableProcessor (OsmDatabase &db) | |
Constructor. | |
void | set (ImportTableAction act, bool val) |
Set whether to perform act. | |
void | enable (ImportTableAction act) |
Enable act (that is perform it when processing) | |
void | disable (ImportTableAction act) |
Disable act (that is do not perform it when processing) | |
void | enable_all () |
Enable all actions. | |
void | disable_all () |
Disable all actions. | |
void | set_all (bool val) |
Set enabled to val for all actions. | |
void | process () |
Process the import table and perform all enabled actions. | |
virtual | ~ImportTableProcessor () |
Data Fields | |
boost::signal< void(ImportTableAction, int64_t)> | action_signal |
Signal that fires after every action has happened. | |
boost::signal< bool(), util::All > | proceed_signal |
This gets fired just before the real import into tables begins and if any handler returns false, import is cancelled. |
Class responsible for moving of data from the Import table into appropriate tables in database.
Definition at line 67 of file ImportTableProcessor.h.
osmdb::ImportTableProcessor::ImportTableProcessor | ( | OsmDatabase & | db | ) |
Constructor.
db | underlying database |
Definition at line 54 of file ImportTableProcessor.cpp.
osmdb::ImportTableProcessor::~ImportTableProcessor | ( | ) | [virtual] |
Definition at line 378 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::disable | ( | ImportTableAction | act | ) |
Disable act (that is do not perform it when processing)
act |
Definition at line 355 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::disable_all | ( | ) |
Disable all actions.
Definition at line 373 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::enable | ( | ImportTableAction | act | ) |
Enable act (that is perform it when processing)
act |
Definition at line 350 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::enable_all | ( | ) |
Enable all actions.
Definition at line 368 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::process | ( | ) |
Process the import table and perform all enabled actions.
Definition at line 60 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::set | ( | ImportTableAction | act, |
bool | val | ||
) |
Set whether to perform act.
act | ImportTableAction in question |
val | whether to perform it |
Definition at line 345 of file ImportTableProcessor.cpp.
void osmdb::ImportTableProcessor::set_all | ( | bool | val | ) |
Set enabled to val for all actions.
val |
Definition at line 360 of file ImportTableProcessor.cpp.
boost::signal<void (ImportTableAction, int64_t)> osmdb::ImportTableProcessor::action_signal |
Signal that fires after every action has happened.
Parameters specify which action happened and how many rows were affected.
Definition at line 79 of file ImportTableProcessor.h.
boost::signal<bool (), util::All> osmdb::ImportTableProcessor::proceed_signal |
This gets fired just before the real import into tables begins and if any handler returns false, import is cancelled.
Definition at line 113 of file ImportTableProcessor.h.