Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
StyledStreamWriter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8// clang-format on
9
10namespace Json {
11
12class StyledStreamWriter {
13public:
14 // StyledStreamWriter inner types define
15 using ChildValues = ::std::vector<::std::string>;
16
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> childValues_;
21 ::ll::TypedStorage<8, 8, ::std::ostream*> document_;
22 ::ll::TypedStorage<8, 32, ::std::string> indentString_;
23 ::ll::TypedStorage<4, 4, int> rightMargin_;
24 ::ll::TypedStorage<8, 32, ::std::string> indentation_;
25 ::ll::TypedStorage<1, 1, bool> addChildValues_;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 StyledStreamWriter();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCNAPI explicit StyledStreamWriter(::std::string indentation);
36
37 MCNAPI void unindent();
38
39 MCNAPI void write(::std::ostream& out, ::Json::Value const& root);
40
41 MCNAPI void writeArrayValue(::Json::Value const& value);
42
43 MCNAPI void writeValue(::Json::Value const& value);
44
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCNAPI void* $ctor(::std::string indentation);
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCNAPI void $dtor();
58 // NOLINTEND
59};
60
61} // namespace Json
MCAPI void write(::std::ostream &out, ::Json::Value const &root)
MCAPI void writeArrayValue(::Json::Value const &value)
MCAPI StyledStreamWriter(::std::string indentation)
MCAPI void writeValue(::Json::Value const &value)
MCAPI void * $ctor(::std::string indentation)
Definition Value.h:16