aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/cyson_enums.h
blob: e1b8dffeeb3890d1be954e070a003106551dc126 (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
40
41
42
43
44
45
46
47
#pragma once 
 
typedef enum yson_event_type { 
    YSON_EVENT_BEGIN_STREAM = 0, 
    YSON_EVENT_END_STREAM = 1, 
    YSON_EVENT_BEGIN_LIST = 2, 
    YSON_EVENT_END_LIST = 3, 
    YSON_EVENT_BEGIN_MAP = 4, 
    YSON_EVENT_END_MAP = 5, 
    YSON_EVENT_BEGIN_ATTRIBUTES = 6, 
    YSON_EVENT_END_ATTRIBUTES = 7, 
    YSON_EVENT_KEY = 8, 
    YSON_EVENT_SCALAR = 9, 
    YSON_EVENT_ERROR = 10 
} yson_event_type; 
 
typedef enum yson_scalar_type { 
    YSON_SCALAR_ENTITY = 0, 
    YSON_SCALAR_BOOLEAN = 1, 
    YSON_SCALAR_INT64 = 2, 
    YSON_SCALAR_UINT64 = 3, 
    YSON_SCALAR_FLOAT64 = 4, 
    YSON_SCALAR_STRING = 5 
} yson_scalar_type; 
 
typedef enum yson_input_stream_result { 
    YSON_INPUT_STREAM_RESULT_OK = 0, 
    YSON_INPUT_STREAM_RESULT_EOF = 1, 
    YSON_INPUT_STREAM_RESULT_ERROR = 2 
} yson_input_stream_result; 
 
typedef enum yson_output_stream_result { 
    YSON_OUTPUT_STREAM_RESULT_OK = 0, 
    YSON_OUTPUT_STREAM_RESULT_ERROR = 1 
} yson_output_stream_result; 
 
typedef enum yson_writer_result { 
    YSON_WRITER_RESULT_OK = 0, 
    YSON_WRITER_RESULT_BAD_STREAM = 1, 
    YSON_WRITER_RESULT_ERROR = 2 
} yson_writer_result; 
 
typedef enum yson_stream_type { 
    YSON_STREAM_TYPE_NODE = 0, 
    YSON_STREAM_TYPE_LIST_FRAGMENT = 1, 
    YSON_STREAM_TYPE_MAP_FRAGMENT = 2 
} yson_stream_type;