MUDA
Loading...
Searching...
No Matches
logger_basic_data.h
1
#pragma once
2
#include <cinttypes>
3
4
namespace
muda
5
{
6
enum 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
34
using
LoggerFmtArg = void (*)(
void
* formatter,
const
void
* obj);
35
36
namespace
details
37
{
38
class
LoggerMetaData
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
49
class
LoggerOffset
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
muda::details::LoggerMetaData
Definition
logger_basic_data.h:39
muda::details::LoggerOffset
Definition
logger_basic_data.h:50
src
muda
logger
logger_basic_data.h
Generated by
1.9.8