blob: 42c1ce80bb489d492a7e707cb79e75dfe8fc09bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#pragma once
#include <library/cpp/yt/misc/enum.h>
namespace NYT::NYson {
////////////////////////////////////////////////////////////////////////////////
//! The data format.
DEFINE_ENUM(EYsonFormat,
// Binary.
// Most compact but not human-readable.
(Binary)
// Text.
// Not so compact but human-readable.
// Does not use indentation.
// Uses escaping for non-text characters.
(Text)
// Text with indentation.
// Extremely verbose but human-readable.
// Uses escaping for non-text characters.
(Pretty)
);
// NB: -1 is used for serializing null TYsonString.
DEFINE_ENUM_WITH_UNDERLYING_TYPE(EYsonType, i8,
((Node) (0))
((ListFragment) (1))
((MapFragment) (2))
);
class TYsonString;
class TYsonStringBuf;
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NYson
|