diff --git a/visualdl/backend/storage/storage.cpp b/visualdl/backend/storage/storage.cpp new file mode 100644 index 0000000000000000000000000000000000000000..222a32a36df4c500a07fe9a2b682bee67bff631e --- /dev/null +++ b/visualdl/backend/storage/storage.cpp @@ -0,0 +1,5 @@ +// +// Created by superjom on 17-11-16. +// + +#include "storage.h" diff --git a/visualdl/backend/storage/storage.h b/visualdl/backend/storage/storage.h new file mode 100644 index 0000000000000000000000000000000000000000..06ab7bec6e23ca55fc935366e7e863d863b991cb --- /dev/null +++ b/visualdl/backend/storage/storage.h @@ -0,0 +1,12 @@ +#ifndef VISUALDL_STORAGE_H +#define VISUALDL_STORAGE_H + +class Storage { + public: + Storage& Global() { + static Storage* instance = new Storage(); + return *instance; + } +}; + +#endif //VISUALDL_STORAGE_H diff --git a/backend/storage/storage.proto b/visualdl/backend/storage/storage.proto similarity index 100% rename from backend/storage/storage.proto rename to visualdl/backend/storage/storage.proto