EHS
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
8namespace 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}
Definition: JsonBase.h:19
Definition: JsonNum.h:11
JsonNum(const JsonNum &jn)=default
float value
Definition: JsonNum.h:13
Definition: Anchor.h:6
signed int SInt_32
Definition: Types.h:50
unsigned int UInt_32
Definition: Types.h:49
unsigned char UInt_8
Definition: Types.h:43
signed char SInt_8
Definition: Types.h:44
unsigned short UInt_16
Definition: Types.h:46
signed short SInt_16
Definition: Types.h:47