EHS
Loading...
Searching...
No Matches
JsonNum.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ehs/EHS.h
"
4
#include "
ehs/Str.h
"
5
6
#include "
JsonBase.h
"
7
8
namespace
ehs
9
{
10
class
EHS_LIB_IO
JsonNum
final :
public
JsonBase
11
{
12
public
:
13
float
value
;
14
15
JsonNum
();
16
17
JsonNum
(SInt_64
value
);
18
19
JsonNum
(UInt_64
value
);
20
21
JsonNum
(
SInt_32
value
);
22
23
JsonNum
(
UInt_32
value
);
24
25
JsonNum
(
SInt_16
value
);
26
27
JsonNum
(
UInt_16
value
);
28
29
JsonNum
(
SInt_8
value
);
30
31
JsonNum
(
UInt_8
value
);
32
33
JsonNum
(
double
value
);
34
35
JsonNum
(
float
value
);
36
37
JsonNum
(
const
JsonNum
& jn) =
default
;
38
39
operator
float()
const
;
40
41
Str_8
ToStr
(UInt_64 level,
bool
compact)
const override
;
42
};
43
}
EHS.h
JsonBase.h
Str.h
ehs::JsonBase::JsonBase
JsonBase()
Definition
JsonBase.cpp:5
ehs::JsonNum::JsonNum
JsonNum(const JsonNum &jn)=default
ehs::JsonNum::ToStr
Str_8 ToStr(UInt_64 level, bool compact) const override
Definition
JsonNum.cpp:74
ehs::JsonNum::JsonNum
JsonNum()
Definition
JsonNum.cpp:5
ehs::JsonNum::value
float value
Definition
JsonNum.h:13
ehs
Definition
Anchor.h:6
ehs::SInt_32
signed int SInt_32
Definition
Types.h:50
ehs::UInt_32
unsigned int UInt_32
Definition
Types.h:49
ehs::UInt_8
unsigned char UInt_8
Definition
Types.h:43
ehs::Str_8
Str< Char_8, UInt_64 > Str_8
Definition
Str.h:1953
ehs::SInt_8
signed char SInt_8
Definition
Types.h:44
ehs::UInt_16
unsigned short UInt_16
Definition
Types.h:46
ehs::SInt_16
signed short SInt_16
Definition
Types.h:47
include
ehs
json
JsonNum.h
Generated by
1.13.2