aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/reader.h
diff options
context:
space:
mode:
authorMikhail Borisov <borisov.mikhail@gmail.com>2022-02-10 16:45:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:39 +0300
commita6a92afe03e02795227d2641b49819b687f088f8 (patch)
treef6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /library/cpp/yson_pull/reader.h
parentc6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff)
downloadydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson_pull/reader.h')
-rw-r--r--library/cpp/yson_pull/reader.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/yson_pull/reader.h b/library/cpp/yson_pull/reader.h
index f839b19071..ad47fa0ea2 100644
--- a/library/cpp/yson_pull/reader.h
+++ b/library/cpp/yson_pull/reader.h
@@ -1,37 +1,37 @@
-#pragma once
-
-#include "event.h"
-#include "input.h"
-#include "stream_type.h"
-
-#include <util/system/yassert.h>
-
-#include <memory>
-
-namespace NYsonPull {
+#pragma once
+
+#include "event.h"
+#include "input.h"
+#include "stream_type.h"
+
+#include <util/system/yassert.h>
+
+#include <memory>
+
+namespace NYsonPull {
namespace NDetail {
class reader_impl;
}
-
+
//! \brief YSON reader facade class.
//!
//! Owns an input stream.
class TReader {
- THolder<NInput::IStream> Stream_;
- THolder<NDetail::reader_impl> Impl_;
-
+ THolder<NInput::IStream> Stream_;
+ THolder<NDetail::reader_impl> Impl_;
+
public:
TReader(THolder<NInput::IStream> stream, EStreamType mode);
TReader(TReader&&) noexcept;
~TReader();
-
+
//! \brief Advance stream to next event and return it.
//!
- //! Any event data is invalidated by a call to NextEvent();
- const TEvent& NextEvent();
-
+ //! Any event data is invalidated by a call to NextEvent();
+ const TEvent& NextEvent();
+
//! \brief Get last returned event.
- const TEvent& LastEvent() const noexcept;
+ const TEvent& LastEvent() const noexcept;
};
-
+
}