123456789101112131415161718192021222324252627282930313233343536373839 |
- #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
|