Public Member Functions | Data Fields
osmdb::ImportTableProcessor Class Reference

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::Allproceed_signal
 This gets fired just before the real import into tables begins and if any handler returns false, import is cancelled.

Detailed Description

Class responsible for moving of data from the Import table into appropriate tables in database.

Definition at line 67 of file ImportTableProcessor.h.


Constructor & Destructor Documentation

osmdb::ImportTableProcessor::ImportTableProcessor ( OsmDatabase db)

Constructor.

Parameters:
dbunderlying database

Definition at line 54 of file ImportTableProcessor.cpp.

osmdb::ImportTableProcessor::~ImportTableProcessor ( ) [virtual]

Definition at line 378 of file ImportTableProcessor.cpp.


Member Function Documentation

void osmdb::ImportTableProcessor::disable ( ImportTableAction  act)

Disable act (that is do not perform it when processing)

Parameters:
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)

Parameters:
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.

Parameters:
actImportTableAction in question
valwhether 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.

Parameters:
val

Definition at line 360 of file ImportTableProcessor.cpp.


Field Documentation

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.

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.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines