diff options
author | monster <monster@yandex-team.ru> | 2022-02-10 16:47:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:19 +0300 |
commit | b23c1d7a8015c2006a148fd93b84cdeb0aee17a3 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/yson/parser.h | |
parent | dd76ae1f6213d065375ab296699f764faafbe5bd (diff) | |
download | ydb-b23c1d7a8015c2006a148fd93b84cdeb0aee17a3.tar.gz |
Restoring authorship annotation for <monster@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson/parser.h')
-rw-r--r-- | library/cpp/yson/parser.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/yson/parser.h b/library/cpp/yson/parser.h index 715341d5b5..dce35a8cd4 100644 --- a/library/cpp/yson/parser.h +++ b/library/cpp/yson/parser.h @@ -1,19 +1,19 @@ -#pragma once - -#include "public.h" - -#include <util/generic/maybe.h> -#include <util/generic/ptr.h> - +#pragma once + +#include "public.h" + +#include <util/generic/maybe.h> +#include <util/generic/ptr.h> + class IInputStream; - + namespace NYT::NYson { struct IYsonConsumer; } // namespace NYT::NYson namespace NYson { //////////////////////////////////////////////////////////////////////////////// - + class TYsonParser { public: TYsonParser( @@ -22,36 +22,36 @@ namespace NYson { EYsonType type = ::NYson::EYsonType::Node, bool enableLinePositionInfo = false, TMaybe<ui64> memoryLimit = Nothing()); - + ~TYsonParser(); - + void Parse(); - + private: class TImpl; THolder<TImpl> Impl; }; - + //////////////////////////////////////////////////////////////////////////////// - + class TStatelessYsonParser { public: TStatelessYsonParser( NYT::NYson::IYsonConsumer* consumer, bool enableLinePositionInfo = false, TMaybe<ui64> memoryLimit = Nothing()); - + ~TStatelessYsonParser(); - + void Parse(const TStringBuf& data, EYsonType type = ::NYson::EYsonType::Node); - + private: class TImpl; THolder<TImpl> Impl; }; - + //////////////////////////////////////////////////////////////////////////////// - + class TYsonListParser { public: TYsonListParser( @@ -59,7 +59,7 @@ namespace NYson { IInputStream* stream, bool enableLinePositionInfo = false, TMaybe<ui64> memoryLimit = Nothing()); - + ~TYsonListParser(); bool Parse(); // Returns false, if there is no more list items @@ -79,5 +79,5 @@ namespace NYson { TMaybe<ui64> memoryLimit = Nothing()); //////////////////////////////////////////////////////////////////////////////// - + } // namespace NYson |