core-legacy/models/period_list.h

29 lines
495 B
C
Raw Normal View History

2019-07-19 09:41:39 +00:00
#ifndef EMGAUWA_CORE_PERIOD_LIST_H
#define EMGAUWA_CORE_PERIOD_LIST_H
#include <json/json.h>
#include "period.h"
class period_list
{
public:
period **periods;
2019-07-20 12:51:45 +00:00
uint16_t length;
2019-07-19 09:41:39 +00:00
period_list();
2019-07-20 12:51:45 +00:00
explicit period_list(const uint16_t *periods_blob);
period_list(period **periods, uint16_t length);
2019-07-19 09:41:39 +00:00
~period_list();
void
add_period(uint16_t start, uint16_t end);
Json::Value
to_json();
uint16_t*
to_db_blob();
};
#endif //EMGAUWA_CORE_PERIOD_LIST_H