SQLite3PluginCommon.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #ifndef __SQL_LITE_3_PLUGIN_COMMON_H
  11. #define __SQL_LITE_3_PLUGIN_COMMON_H
  12. #include "DS_Multilist.h"
  13. #include "RakString.h"
  14. #include "BitStream.h"
  15. /// \defgroup SQL_LITE_3_PLUGIN SQLite3Plugin
  16. /// \brief Code to transmit SQLite3 commands across the network
  17. /// \details
  18. /// \ingroup PLUGINS_GROUP
  19. /// Contains a result row, which is just an array of strings
  20. /// \ingroup SQL_LITE_3_PLUGIN
  21. struct SQLite3Row
  22. {
  23. DataStructures::List<RakNet::RakString> entries;
  24. };
  25. /// Contains a result table, which is an array of column name strings, followed by an array of SQLite3Row
  26. /// \ingroup SQL_LITE_3_PLUGIN
  27. struct SQLite3Table
  28. {
  29. SQLite3Table();
  30. ~SQLite3Table();
  31. void Serialize(RakNet::BitStream *bitStream);
  32. void Deserialize(RakNet::BitStream *bitStream);
  33. DataStructures::List<RakNet::RakString> columnNames;
  34. DataStructures::List<SQLite3Row*> rows;
  35. };
  36. #endif
粤ICP备19079148号