feat/update_config #10

Merged
tqcq merged 26 commits from feat/update_config into master 2024-10-14 10:15:01 +08:00
3 changed files with 15 additions and 0 deletions
Showing only changes of commit dc02ceb9b0 - Show all commits

View File

@ -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

View File

@ -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<const char *>(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) {}

View File

@ -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