diff options
| author | Mikhail Borisov <[email protected]> | 2022-02-10 16:45:39 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:39 +0300 | 
| commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
| tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /library/cpp/yson_pull/reader.h | |
| parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
Restoring authorship annotation for Mikhail Borisov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson_pull/reader.h')
| -rw-r--r-- | library/cpp/yson_pull/reader.h | 42 | 
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/yson_pull/reader.h b/library/cpp/yson_pull/reader.h index f839b190713..ad47fa0ea2e 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;       }; - +   }  | 
