diff options
author | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
commit | 22f8ae0e3f5d68b92aecccdf96c1d841a0334311 (patch) | |
tree | bffa27765faf54126ad44bcafa89fadecb7a73d7 /library/cpp/skiff/public.h | |
parent | 332b99e2173f0425444abb759eebcb2fafaa9209 (diff) | |
download | ydb-22f8ae0e3f5d68b92aecccdf96c1d841a0334311.tar.gz |
validate canons without yatest_common
Diffstat (limited to 'library/cpp/skiff/public.h')
-rw-r--r-- | library/cpp/skiff/public.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/library/cpp/skiff/public.h b/library/cpp/skiff/public.h new file mode 100644 index 0000000000..127c0f2efc --- /dev/null +++ b/library/cpp/skiff/public.h @@ -0,0 +1,58 @@ +#pragma once + +#include <vector> +#include <memory> + +namespace NSkiff { + +//////////////////////////////////////////////////////////////////////////////// + +enum class EWireType +{ + Nothing /* "nothing" */, + Int8 /* "int8" */, + Int16 /* "int16" */, + Int32 /* "int32" */, + Int64 /* "int64" */, + Int128 /* "int128" */, + Uint8 /* "uint8" */, + Uint16 /* "uint16" */, + Uint32 /* "uint32" */, + Uint64 /* "uint64" */, + Uint128 /* "uint128" */, + Double /* "double" */, + Boolean /* "boolean" */, + String32 /* "string32" */, + Yson32 /* "yson32" */, + + Tuple /* "tuple" */, + Variant8 /* "variant8" */, + Variant16 /* "variant16" */, + RepeatedVariant8 /* "repeated_variant8" */, + RepeatedVariant16 /* "repeated_variant16" */, +}; + +//////////////////////////////////////////////////////////////////////////////// + +class TSkiffSchema; +using TSkiffSchemaList = std::vector<std::shared_ptr<TSkiffSchema>>; + +class TSkiffValidator; + +class TUncheckedSkiffParser; +class TCheckedSkiffParser; + +class TUncheckedSkiffWriter; +class TCheckedSkiffWriter; + +#ifdef DEBUG +using TCheckedInDebugSkiffParser = TCheckedSkiffParser; +using TCheckedInDebugSkiffWriter = TCheckedSkiffWriter; +#else +using TCheckedInDebugSkiffParser = TUncheckedSkiffParser; +using TCheckedInDebugSkiffWriter = TUncheckedSkiffWriter; +#endif + +//////////////////////////////////////////////////////////////////////////////// + +} // namespace NSkiff |