core-legacy/models/period_list.h

29 lines
492 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*
2020-04-18 19:29:52 +00:00
to_blob();
2019-07-19 09:41:39 +00:00
};
#endif //EMGAUWA_CORE_PERIOD_LIST_H