-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathtasklist.obx.hpp
46 lines (32 loc) · 1.32 KB
/
tasklist.obx.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Code generated by ObjectBox; DO NOT EDIT.
#pragma once
#include <cstdbool>
#include <cstdint>
#include "flatbuffers/flatbuffers.h"
#include "objectbox.h"
#include "objectbox.hpp"
struct Task_;
struct Task {
obx_id id;
std::string text;
int64_t date_created;
int64_t date_finished;
struct _OBX_MetaInfo {
static constexpr obx_schema_id entityId() { return 1; }
static void setObjectId(Task& object, obx_id newId) { object.id = newId; }
/// Write given object to the FlatBufferBuilder
static void toFlatBuffer(flatbuffers::FlatBufferBuilder& fbb, const Task& object);
/// Read an object from a valid FlatBuffer
static Task fromFlatBuffer(const void* data, size_t size);
/// Read an object from a valid FlatBuffer
static std::unique_ptr<Task> newFromFlatBuffer(const void* data, size_t size);
/// Read an object from a valid FlatBuffer
static void fromFlatBuffer(const void* data, size_t size, Task& outObject);
};
};
struct Task_ {
static const obx::Property<Task, OBXPropertyType_Long> id;
static const obx::Property<Task, OBXPropertyType_String> text;
static const obx::Property<Task, OBXPropertyType_Date> date_created;
static const obx::Property<Task, OBXPropertyType_Date> date_finished;
};