From d709252b0fd81dbe8603ee5de9cfb618db457703 Mon Sep 17 00:00:00 2001 From: superjom Date: Tue, 28 Nov 2017 19:28:40 +0800 Subject: [PATCH] init service mode --- visualdl/backend/storage/storage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/visualdl/backend/storage/storage.h b/visualdl/backend/storage/storage.h index 12de7718..5ccd4564 100644 --- a/visualdl/backend/storage/storage.h +++ b/visualdl/backend/storage/storage.h @@ -26,6 +26,8 @@ public: const static std::string meta_file_name; enum Type { kMemory = 0, kDisk = 1 }; + // mode of the sevice, either reading or writing. + enum Mode { kRead = 0, kWrite = 1 }; void SetStorage(const std::string &dir) { time_t t; -- GitLab