Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
String_Logger.h
Go to the documentation of this file.
1#ifndef joedb_String_Logger
2#define joedb_String_Logger
3
5
6#include <string>
7
8namespace joedb
9{
10 /// @ingroup error
11 class String_Logger: public Logger
12 {
13 private:
14 std::string message_memory;
15
16 public:
17 void write(const char *message) noexcept final override
18 {
19 if (message)
20 message_memory = message;
21 else
22 message_memory.clear();
23 }
24
25 const std::string &get_message() const
26 {
27 return message_memory;
28 }
29
31 };
32}
33
34#endif
void write(const char *message) noexcept final override
const std::string & get_message() const
static String_Logger the_logger
Definition Blob.h:7