diff --git a/CMakeLists.txt b/CMakeLists.txt index 17a430e..f8f9f1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ set(KYLIN_WITH_NNG ON) # add_subdirectory(/mnt/e/Projects/Kylin Kylin) FetchContent_MakeAvailable(Kylin) +add_subdirectory(Database) add_subdirectory(MediaServer) add_subdirectory(ToolKit) add_subdirectory(WebApplication) diff --git a/Server/Database/CMakeLists.txt b/Database/CMakeLists.txt similarity index 100% rename from Server/Database/CMakeLists.txt rename to Database/CMakeLists.txt diff --git a/Server/Database/Database.cpp b/Database/Database.cpp similarity index 100% rename from Server/Database/Database.cpp rename to Database/Database.cpp diff --git a/Server/Database/Database.h b/Database/Database.h similarity index 100% rename from Server/Database/Database.h rename to Database/Database.h diff --git a/Server/Database/HomeBox.cpp b/Database/HomeBox.cpp similarity index 100% rename from Server/Database/HomeBox.cpp rename to Database/HomeBox.cpp diff --git a/Server/Database/HomeBox.h b/Database/HomeBox.h similarity index 100% rename from Server/Database/HomeBox.h rename to Database/HomeBox.h diff --git a/Server/Database/Task.cpp b/Database/Task.cpp similarity index 100% rename from Server/Database/Task.cpp rename to Database/Task.cpp diff --git a/Server/Database/Task.h b/Database/Task.h similarity index 86% rename from Server/Database/Task.h rename to Database/Task.h index 445173a..88d553c 100644 --- a/Server/Database/Task.h +++ b/Database/Task.h @@ -16,6 +16,10 @@ public: std::string content; std::string comment; Tasks children; + + template + void persist(Action &a) { + } }; namespace boost { diff --git a/Server/CMakeLists.txt b/Server/CMakeLists.txt index 3f6a86b..8864366 100644 --- a/Server/CMakeLists.txt +++ b/Server/CMakeLists.txt @@ -1,7 +1,6 @@ find_package(Boost COMPONENTS program_options json REQUIRED) add_subdirectory(ChatRoom) -add_subdirectory(Database) add_subdirectory(WebRTC) add_executable(Server main.cpp