Page MenuHomec4science

state_manager.hh
No OneTemporary

File Metadata

Created
Sat, Aug 3, 10:15

state_manager.hh

#ifndef __BLACKDYNAMITE_STATE_UPDATER_HH__
#define __BLACKDYNAMITE_STATE_UPDATER_HH__
/* -------------------------------------------------------------------------- */
#include "blackdynamite.hh"
/* -------------------------------------------------------------------------- */
namespace BlackDynamite {
class SQLConnectionManager;
class StateManager {
public:
StateManager(SQLConnectionManager & connection_manager, const std::string & sql_schema, UInt run_id);
~StateManager();
void changeState(const std::string & state);
const std::string & getState() const;
private:
class StateUpdater;
protected:
SQLConnectionManager & connection_manager;
std::string state;
UInt run_id;
static UInt state_manager_counter;
};
}
#endif /* __BLACKDYNAMITE_STATE_UPDATER_HH__ */

Event Timeline