EHS
JsonStr.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 JsonStr final : public JsonBase
11 {
12 public:
14
15 JsonStr();
16
17 JsonStr(Str_8 value);
18
19 JsonStr(const Char_8 *value, UInt_64 size = 0);
20
21 JsonStr(JsonStr &&js) noexcept;
22
23 JsonStr(const JsonStr &js) = default;
24
25 JsonStr& operator=(JsonStr &&js) noexcept;
26
27 operator Str_8() const;
28
29 operator Str_8 &();
30
31 Str_8 ToStr(UInt_64 level, bool compact) const override;
32 };
33}
Definition: JsonBase.h:19
Definition: JsonStr.h:11
JsonStr(const JsonStr &js)=default
Str_8 value
Definition: JsonStr.h:13
Definition: Anchor.h:6
char Char_8
Definition: Types.h:40
Str< Char_8, UInt_64 > Str_8
Definition: Str.h:1953