blob: f3b1398d4c18e5d6ac8d88c03f06105d572d29b3 (
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
|
#pragma once
#include "event.h"
#include <util/generic/strbuf.h>
#include <util/system/types.h>
namespace NYsonPull {
class IConsumer {
public:
virtual ~IConsumer() = default;
virtual void OnBeginStream() = 0;
virtual void OnEndStream() = 0;
virtual void OnBeginList() = 0;
virtual void OnEndList() = 0;
virtual void OnBeginMap() = 0;
virtual void OnEndMap() = 0;
virtual void OnBeginAttributes() = 0;
virtual void OnEndAttributes() = 0;
virtual void OnKey(TStringBuf name) = 0;
virtual void OnEntity() = 0;
virtual void OnScalarBoolean(bool value) = 0;
virtual void OnScalarInt64(i64 value) = 0;
virtual void OnScalarUInt64(ui64 value) = 0;
virtual void OnScalarFloat64(double value) = 0;
virtual void OnScalarString(TStringBuf value) = 0;
virtual void OnScalar(const TScalar& value);
virtual void OnEvent(const TEvent& value);
};
}
|