diff options
author | qkrorlqr <qkrorlqr@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
commit | eec632e483ae34bc211138c67434b1e0e6054ced (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/yson/json/yson2json_adapter.h | |
parent | 9b89266638b10d40309e31dcb7caa2fc52b2aefd (diff) | |
download | ydb-eec632e483ae34bc211138c67434b1e0e6054ced.tar.gz |
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson/json/yson2json_adapter.h')
-rw-r--r-- | library/cpp/yson/json/yson2json_adapter.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/yson/json/yson2json_adapter.h b/library/cpp/yson/json/yson2json_adapter.h index e95212254b..da1bf5ba70 100644 --- a/library/cpp/yson/json/yson2json_adapter.h +++ b/library/cpp/yson/json/yson2json_adapter.h @@ -10,17 +10,17 @@ namespace NYT { class TYson2JsonCallbacksAdapter : public NJson::TJsonCallbacks { public: - class TState { - private: - // Stores current context stack - // If true - we are in a list - // If false - we are in a map - TStack<bool> ContextStack; - - friend class TYson2JsonCallbacksAdapter; - }; - - public: + class TState { + private: + // Stores current context stack + // If true - we are in a list + // If false - we are in a map + TStack<bool> ContextStack; + + friend class TYson2JsonCallbacksAdapter; + }; + + public: TYson2JsonCallbacksAdapter(::NYson::TYsonConsumerBase* impl, bool throwException = false); bool OnNull() override; @@ -35,19 +35,19 @@ namespace NYT { bool OnCloseMap() override; bool OnMapKey(const TStringBuf& val) override; - TState State() const { - return State_; - } - - void Reset(const TState& state) { - State_ = state; - } - + TState State() const { + return State_; + } + + void Reset(const TState& state) { + State_ = state; + } + private: void WrapIfListItem(); private: ::NYson::TYsonConsumerBase* Impl_; - TState State_; + TState State_; }; } |