MUDA
Loading...
Searching...
No Matches
logger_basic_data.h
1#pragma once
2#include <cinttypes>
3
4namespace muda
5{
6enum class LoggerBasicType : uint16_t
7{
8 None,
9 Int8,
10 Int16,
11 Int,
12 Int32 = Int,
13 Int64,
14 Long,
15 LongLong,
16
17 UInt8,
18 UInt16,
19 UInt,
20 UInt32 = UInt,
21 UInt64,
22 ULong,
23 ULongLong,
24
25 Float,
26 Double,
27 String,
28 FmtString,
29
30
31 Object, // user defined object
32};
33
34using LoggerFmtArg = void (*)(void* formatter, const void* obj);
35
36namespace details
37{
39 {
40 public:
41 LoggerBasicType type = LoggerBasicType::None;
42 uint16_t exceeded = 0; // false
43 uint32_t id = ~0;
44 uint32_t size = ~0;
45 uint32_t offset = ~0;
46 LoggerFmtArg fmt_arg = nullptr;
47 };
48
50 {
51 public:
52 uint32_t log_id = 0;
53 uint32_t meta_data_offset = 0;
54 uint32_t exceed_meta_data = 0; // false
55 uint32_t buffer_offset = 0;
56 uint32_t exceed_buffer = 0; // false
57 };
58} // namespace details
59} // namespace muda
Definition logger_basic_data.h:39
Definition logger_basic_data.h:50