11#define UniRunPERIOD_H 1
#define ClassDef(name, id)
UniRunPeriod.h Class for the table: run_period.
int GetPeriodNumber()
get period number of the current run period
static int GetFirstRunNumber(int period_number)
get first run number for a selected period
TDatime * GetEndDatetime()
get end datetime of the current run period
void Print()
print information about current run period
int SetEndDatetime(TDatime *end_datetime)
set end datetime of the current run period
int SetPeriodNumber(int period_number)
set period number of the current run period
static int DeleteRunPeriod(int period_number)
delete run period from the database
TDatime ts_start_datetime
start datetime
int i_period_number
period number
static int PrintAll()
print all run periods
int SetStartDatetime(TDatime start_datetime)
set start datetime of the current run period
static UniRunPeriod * GetRunPeriod(int period_number)
get run period from the database
static int GetPeriodNumber(TDatime datetime)
get period number for specified datetime
static int GetRunNumbers(UniqueRunNumber *&run_numbers, int period_number)
get numbers of runs existing in the Database for a selected period
UniConnection * connectionDB
connection to the database
TDatime * ts_end_datetime
end datetime
static int GetPeriodNumber(const char *pcdatetime)
get period number for specified string containing datetime in SQL format ("DD-MM-YYYY hh:mm:ss")
static int CheckRunPeriodExists(int period_number)
check run period exists in the database: 1- true, 0 - false, <0 - database operation error
TDatime GetStartDatetime()
get start datetime of the current run period
static int GetLastRunNumber(int period_number)
get last run number for a selected period
UniRunPeriod(UniConnection *db_connect, int period_number, TDatime start_datetime, TDatime *end_datetime)
static UniRunPeriod * CreateRunPeriod(int period_number, TDatime start_datetime, TDatime *end_datetime)
add new run period to the database