public.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <library/cpp/yt/misc/enum.h>
  3. namespace NYT::NYson {
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //! The data format.
  6. DEFINE_ENUM(EYsonFormat,
  7. // Binary.
  8. // Most compact but not human-readable.
  9. (Binary)
  10. // Text.
  11. // Not so compact but human-readable.
  12. // Does not use indentation.
  13. // Uses escaping for non-text characters.
  14. (Text)
  15. // Text with indentation.
  16. // Extremely verbose but human-readable.
  17. // Uses escaping for non-text characters.
  18. (Pretty)
  19. );
  20. // NB: -1 is used for serializing null TYsonString.
  21. DEFINE_ENUM_WITH_UNDERLYING_TYPE(EYsonType, i8,
  22. ((Node) (0))
  23. ((ListFragment) (1))
  24. ((MapFragment) (2))
  25. );
  26. class TYsonString;
  27. class TYsonStringBuf;
  28. ////////////////////////////////////////////////////////////////////////////////
  29. } // namespace NYT::NYson