2024-02-05 22:25:30 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ehs/EHS.h"
|
|
|
|
#include "ehs/Str.h"
|
|
|
|
|
|
|
|
#include "JsonBase.h"
|
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
2024-08-15 19:28:30 -07:00
|
|
|
class EHS_LIB_IO JsonBool final : public JsonBase
|
2024-02-05 22:25:30 -08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool value;
|
|
|
|
|
|
|
|
JsonBool();
|
|
|
|
|
2024-08-15 19:28:30 -07:00
|
|
|
JsonBool(bool value);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
JsonBool(const JsonBool& jb) = default;
|
|
|
|
|
|
|
|
operator bool() const;
|
|
|
|
|
|
|
|
operator bool&();
|
|
|
|
|
2024-08-15 19:28:30 -07:00
|
|
|
Str_8 ToStr(UInt_64 level, bool compact) const override;
|
2024-02-05 22:25:30 -08:00
|
|
|
};
|
|
|
|
}
|