diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/yson/parser.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/parser.h')
-rw-r--r-- | library/cpp/yson/parser.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/library/cpp/yson/parser.h b/library/cpp/yson/parser.h index dce35a8cd4..f935840b98 100644 --- a/library/cpp/yson/parser.h +++ b/library/cpp/yson/parser.h @@ -12,72 +12,72 @@ struct IYsonConsumer; } // namespace NYT::NYson namespace NYson { - //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// - class TYsonParser { - public: - TYsonParser( + class TYsonParser { + public: + TYsonParser( NYT::NYson::IYsonConsumer* consumer, - IInputStream* stream, + IInputStream* stream, EYsonType type = ::NYson::EYsonType::Node, - bool enableLinePositionInfo = false, - TMaybe<ui64> memoryLimit = Nothing()); + bool enableLinePositionInfo = false, + TMaybe<ui64> memoryLimit = Nothing()); - ~TYsonParser(); + ~TYsonParser(); - void Parse(); + void Parse(); - private: - class TImpl; - THolder<TImpl> Impl; - }; + private: + class TImpl; + THolder<TImpl> Impl; + }; - //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// - class TStatelessYsonParser { - public: - TStatelessYsonParser( + class TStatelessYsonParser { + public: + TStatelessYsonParser( NYT::NYson::IYsonConsumer* consumer, - bool enableLinePositionInfo = false, - TMaybe<ui64> memoryLimit = Nothing()); + bool enableLinePositionInfo = false, + TMaybe<ui64> memoryLimit = Nothing()); - ~TStatelessYsonParser(); + ~TStatelessYsonParser(); void Parse(const TStringBuf& data, EYsonType type = ::NYson::EYsonType::Node); - private: - class TImpl; - THolder<TImpl> Impl; - }; + private: + class TImpl; + THolder<TImpl> Impl; + }; - //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// - class TYsonListParser { - public: - TYsonListParser( + class TYsonListParser { + public: + TYsonListParser( NYT::NYson::IYsonConsumer* consumer, - IInputStream* stream, - bool enableLinePositionInfo = false, - TMaybe<ui64> memoryLimit = Nothing()); + IInputStream* stream, + bool enableLinePositionInfo = false, + TMaybe<ui64> memoryLimit = Nothing()); - ~TYsonListParser(); + ~TYsonListParser(); - bool Parse(); // Returns false, if there is no more list items + bool Parse(); // Returns false, if there is no more list items - private: - class TImpl; - THolder<TImpl> Impl; - }; + private: + class TImpl; + THolder<TImpl> Impl; + }; - //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// - void ParseYsonStringBuffer( - const TStringBuf& buffer, + void ParseYsonStringBuffer( + const TStringBuf& buffer, NYT::NYson::IYsonConsumer* consumer, EYsonType type = ::NYson::EYsonType::Node, - bool enableLinePositionInfo = false, - TMaybe<ui64> memoryLimit = Nothing()); + bool enableLinePositionInfo = false, + TMaybe<ui64> memoryLimit = Nothing()); - //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// } // namespace NYson |