Class BaseStatus

Inheritance Relationships

Derived Types

Class Documentation

class BaseStatus

Subclassed by ExperimentStatus, ModelStatus

Public Functions

inline BaseStatus(const string class_name, const string table_name, const string primary_key)
inline BaseStatus(const string class_name, const string table_name, const string primary_key, Database *database)
~BaseStatus()
json read_data()
json read_data(string id)
inline void increment_progress(double i)

Public Members

const string COL_ID = "id"
const string COL_DATA = "progress"
const string PROGRESS = "progressPercentage"
const string STATUS = "status"
const string BUSY = "busy"

Protected Functions

inline void set_progress(double p)
void start_recording_progress()
void stop_recording_progress()
bool write_data(json data)
void insert_data(string id, json data)
void set_state(double progress, string status, bool busy)

Protected Attributes

Database *database = nullptr
string table_name = "N/A"
Logger logger = Logger("BaseStatus")