29 lines
477 B
C++
29 lines
477 B
C++
#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;
|
|
int length;
|
|
|
|
period_list();
|
|
period_list(const uint16_t *periods_blob);
|
|
period_list(period **periods, int length);
|
|
~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
|