EHS/include/ehs/json/JsonNum.h

43 lines
585 B
C
Raw Normal View History

2024-02-05 22:25:30 -08:00
#pragma once
#include "ehs/EHS.h"
#include "ehs/Str.h"
#include "JsonBase.h"
namespace ehs
{
class EHS_LIB_IO JsonNum final : public JsonBase
2024-02-05 22:25:30 -08:00
{
public:
float value;
JsonNum();
JsonNum(SInt_64 value);
2024-02-05 22:25:30 -08:00
JsonNum(UInt_64 value);
2024-02-05 22:25:30 -08:00
JsonNum(SInt_32 value);
2024-02-05 22:25:30 -08:00
JsonNum(UInt_32 value);
2024-02-05 22:25:30 -08:00
JsonNum(SInt_16 value);
2024-02-05 22:25:30 -08:00
JsonNum(UInt_16 value);
2024-02-05 22:25:30 -08:00
JsonNum(SInt_8 value);
2024-02-05 22:25:30 -08:00
JsonNum(UInt_8 value);
2024-02-05 22:25:30 -08:00
JsonNum(double value);
2024-02-05 22:25:30 -08:00
JsonNum(float value);
2024-02-05 22:25:30 -08:00
JsonNum(const JsonNum& jn) = default;
operator float() const;
Str_8 ToStr(UInt_64 level, bool compact) const override;
2024-02-05 22:25:30 -08:00
};
}