serialize.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "node.h"
  3. namespace NYT {
  4. namespace NYson {
  5. struct IYsonConsumer;
  6. } // namespace NYson
  7. ////////////////////////////////////////////////////////////////////////////////
  8. void Serialize(const TString& value, NYson::IYsonConsumer* consumer);
  9. void Serialize(const TStringBuf& value, NYson::IYsonConsumer* consumer);
  10. void Serialize(const char* value, NYson::IYsonConsumer* consumer);
  11. void Deserialize(TString& value, const TNode& node);
  12. void Serialize(signed char value, NYson::IYsonConsumer* consumer);
  13. void Serialize(short value, NYson::IYsonConsumer* consumer);
  14. void Serialize(int value, NYson::IYsonConsumer* consumer);
  15. void Serialize(long value, NYson::IYsonConsumer* consumer);
  16. void Serialize(long long value, NYson::IYsonConsumer* consumer);
  17. void Deserialize(i64& value, const TNode& node);
  18. void Serialize(unsigned char value, NYson::IYsonConsumer* consumer);
  19. void Serialize(unsigned short value, NYson::IYsonConsumer* consumer);
  20. void Serialize(unsigned int value, NYson::IYsonConsumer* consumer);
  21. void Serialize(unsigned long value, NYson::IYsonConsumer* consumer);
  22. void Serialize(unsigned long long value, NYson::IYsonConsumer* consumer);
  23. void Deserialize(ui64& value, const TNode& node);
  24. void Serialize(double value, NYson::IYsonConsumer* consumer);
  25. void Deserialize(double& value, const TNode& node);
  26. void Serialize(bool value, NYson::IYsonConsumer* consumer);
  27. void Deserialize(bool& value, const TNode& node);
  28. void Serialize(const TNode& node, NYson::IYsonConsumer* consumer);
  29. void Deserialize(TNode& value, const TNode& node);
  30. void Serialize(const THashMap<TString, TString>& renameColumns, NYson::IYsonConsumer* consumer);
  31. ////////////////////////////////////////////////////////////////////////////////
  32. } // namespace NYT