From dc02ceb9b06f601d0d1ea6b167b028e994f2f98a Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:32:05 +0800 Subject: [PATCH] feat(configuration): add toml config --- tile/base/configuration.h | 1 + tile/base/slice.h | 2 ++ tile/tile.h | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/tile/base/configuration.h b/tile/base/configuration.h index 50cf5f3..af53510 100644 --- a/tile/base/configuration.h +++ b/tile/base/configuration.h @@ -7,5 +7,6 @@ #include "tile/base/config/configuration.h" #include "tile/base/config/ini_file_configuration.h" #include "tile/base/config/layered_configuration.h" +#include "tile/base/config/toml_configuration.h" #endif// TILE_BASE_CONFIGURATION_H diff --git a/tile/base/slice.h b/tile/base/slice.h index 8d130f9..8ec1435 100644 --- a/tile/base/slice.h +++ b/tile/base/slice.h @@ -75,6 +75,8 @@ public: // const char* Slice(const char *c_str) : data_(c_str), len_(strlen(c_str)) {} + Slice(const void *data, size_t len) : data_(reinterpret_cast(data)), len_(len) {} + constexpr Slice(const char *begin, const char *end) : data_(begin), len_(end - begin) {} constexpr Slice(const char *data, size_t len) : data_(data), len_(len) {} diff --git a/tile/tile.h b/tile/tile.h index 7d72a4c..de94d47 100644 --- a/tile/tile.h +++ b/tile/tile.h @@ -38,6 +38,15 @@ #include "tile/base/variant.h" #include "tile/base/write_mostly.h" +// Sync +#include "tile/base/thread/cond_var.h" +#include "tile/base/thread/event.h" +#include "tile/base/thread/latch.h" +#include "tile/base/thread/mutex.h" +#include "tile/base/thread/rw_mutex.h" +#include "tile/base/thread/scoped_lock.h" +#include "tile/base/thread/unique_lock.h" + // util #include "tile/base/configuration.h" @@ -49,4 +58,7 @@ // Tile Init #include "tile/init.h" +// sigslot +#include "sigslot/sigslot.h" + #endif// TILE_TILE_H