diff options
author | babenko <babenko@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
commit | cec37806d8847aa3db53bafc9e251d4aaf325c12 (patch) | |
tree | 4a61c191e93e31d9ab423e258c71ab43550ee3d2 /library/cpp/yt/yson_string/public.h | |
parent | 58cd0b86ed99a72df22479e26a20bc1c1e57e65e (diff) | |
download | ydb-cec37806d8847aa3db53bafc9e251d4aaf325c12.tar.gz |
Restoring authorship annotation for <babenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/yson_string/public.h')
-rw-r--r-- | library/cpp/yt/yson_string/public.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/library/cpp/yt/yson_string/public.h b/library/cpp/yt/yson_string/public.h index 42c1ce80bb..6e89f54ab2 100644 --- a/library/cpp/yt/yson_string/public.h +++ b/library/cpp/yt/yson_string/public.h @@ -1,39 +1,39 @@ -#pragma once - -#include <library/cpp/yt/misc/enum.h> - -namespace NYT::NYson { - -//////////////////////////////////////////////////////////////////////////////// - -//! The data format. -DEFINE_ENUM(EYsonFormat, - // Binary. - // Most compact but not human-readable. - (Binary) - - // Text. - // Not so compact but human-readable. - // Does not use indentation. - // Uses escaping for non-text characters. - (Text) - - // Text with indentation. - // Extremely verbose but human-readable. - // Uses escaping for non-text characters. - (Pretty) -); - -// NB: -1 is used for serializing null TYsonString. -DEFINE_ENUM_WITH_UNDERLYING_TYPE(EYsonType, i8, - ((Node) (0)) - ((ListFragment) (1)) - ((MapFragment) (2)) -); - -class TYsonString; -class TYsonStringBuf; - -//////////////////////////////////////////////////////////////////////////////// - -} // namespace NYT::NYson +#pragma once + +#include <library/cpp/yt/misc/enum.h> + +namespace NYT::NYson { + +//////////////////////////////////////////////////////////////////////////////// + +//! The data format. +DEFINE_ENUM(EYsonFormat, + // Binary. + // Most compact but not human-readable. + (Binary) + + // Text. + // Not so compact but human-readable. + // Does not use indentation. + // Uses escaping for non-text characters. + (Text) + + // Text with indentation. + // Extremely verbose but human-readable. + // Uses escaping for non-text characters. + (Pretty) +); + +// NB: -1 is used for serializing null TYsonString. +DEFINE_ENUM_WITH_UNDERLYING_TYPE(EYsonType, i8, + ((Node) (0)) + ((ListFragment) (1)) + ((MapFragment) (2)) +); + +class TYsonString; +class TYsonStringBuf; + +//////////////////////////////////////////////////////////////////////////////// + +} // namespace NYT::NYson |