schema.h 393 B

1234567891011121314
  1. #pragma once
  2. #include "schema_struct.h"
  3. using namespace schema;
  4. namespace schema{
  5. namespace serializor{
  6. class SchemJsonSerializor{
  7. public:
  8. static void serialize(std::string &json, const schema::SCHEMA & _schema, const SCHEMA_VERSION &version = CURRENT_SCHEMA_VERSTION);
  9. static bool deserialize(const std::string &json, schema::SCHEMA & _schema, SCHEMA_VERSION &version);
  10. };
  11. }
  12. }