public.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #pragma once
  2. #include <vector>
  3. #include <memory>
  4. namespace NSkiff {
  5. ////////////////////////////////////////////////////////////////////////////////
  6. enum class EWireType
  7. {
  8. Nothing /* "nothing" */,
  9. Int8 /* "int8" */,
  10. Int16 /* "int16" */,
  11. Int32 /* "int32" */,
  12. Int64 /* "int64" */,
  13. Int128 /* "int128" */,
  14. Uint8 /* "uint8" */,
  15. Uint16 /* "uint16" */,
  16. Uint32 /* "uint32" */,
  17. Uint64 /* "uint64" */,
  18. Uint128 /* "uint128" */,
  19. Double /* "double" */,
  20. Boolean /* "boolean" */,
  21. String32 /* "string32" */,
  22. Yson32 /* "yson32" */,
  23. Tuple /* "tuple" */,
  24. Variant8 /* "variant8" */,
  25. Variant16 /* "variant16" */,
  26. RepeatedVariant8 /* "repeated_variant8" */,
  27. RepeatedVariant16 /* "repeated_variant16" */,
  28. };
  29. ////////////////////////////////////////////////////////////////////////////////
  30. class TSkiffSchema;
  31. using TSkiffSchemaPtr = std::shared_ptr<TSkiffSchema>;
  32. using TSkiffSchemaList = std::vector<TSkiffSchemaPtr>;
  33. class TSimpleTypeSchema;
  34. using TSimpleTypeSchemaPtr = std::shared_ptr<TSimpleTypeSchema>;
  35. class TSkiffValidator;
  36. class TUncheckedSkiffParser;
  37. class TCheckedSkiffParser;
  38. class TUncheckedSkiffWriter;
  39. class TCheckedSkiffWriter;
  40. #ifdef DEBUG
  41. using TCheckedInDebugSkiffParser = TCheckedSkiffParser;
  42. using TCheckedInDebugSkiffWriter = TCheckedSkiffWriter;
  43. #else
  44. using TCheckedInDebugSkiffParser = TUncheckedSkiffParser;
  45. using TCheckedInDebugSkiffWriter = TUncheckedSkiffWriter;
  46. #endif
  47. ////////////////////////////////////////////////////////////////////////////////
  48. } // namespace NSkiff