aboutsummaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-01 15:10:54 -0400
committerYour Name <you@example.com>2021-05-01 15:10:54 -0400
commit7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d (patch)
treed9b808542216f71dbab053ad23145903e96c6401 /src/entry.h
parent5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (diff)
downloaddmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.gz
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.bz2
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.zip
Added bash completion, amongst others
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entry.h b/src/entry.h
index 1badd40..e354c82 100644
--- a/src/entry.h
+++ b/src/entry.h
@@ -28,6 +28,7 @@ namespace entry {
virtual nlohmann::json toJson(void) const {
return nlohmann::json({
+ {"entry", entry},
{"name", name},
{"type", type},
{"text", text}
@@ -35,9 +36,10 @@ namespace entry {
}
protected:
- Entry(const nlohmann::json& data) : name(data["name"]), type(data["type"]), text(data["text"]) {};
+ Entry(const nlohmann::json& data) : entry(data["entry"]), name(data["name"]), type(data["type"]), text(data["text"]) {};
private:
+ const std::string entry;
const std::string name;
const std::string type;
const std::string text;