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
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
22
24
26
28
30
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}
JsonBase()
Definition JsonBase.cpp:5
JsonNum(const JsonNum &jn)=default
Str_8 ToStr(UInt_64 level, bool compact) const override
Definition JsonNum.cpp:74
JsonNum()
Definition JsonNum.cpp:5
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
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1953
signed char SInt_8
Definition Types.h:44
unsigned short UInt_16
Definition Types.h:46
signed short SInt_16
Definition Types.h:47