23 lines
306 B
C++
23 lines
306 B
C++
#ifndef EMGAUWA_CORE_PERIOD_H
|
|
#define EMGAUWA_CORE_PERIOD_H
|
|
|
|
|
|
#include <json/json.h>
|
|
|
|
class period
|
|
{
|
|
public:
|
|
uint16_t start;
|
|
uint16_t end;
|
|
|
|
period(uint16_t start, uint16_t end);
|
|
|
|
Json::Value
|
|
to_json();
|
|
|
|
bool
|
|
is_in_period(uint16_t timestamp);
|
|
};
|
|
|
|
|
|
#endif //EMGAUWA_CORE_PERIOD_H
|