Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.82 KB | None | 0 0
  1.  
  2. //Tõõtab
  3. std::stringstream ss; // any stream can be used
  4. {
  5.     cereal::JSONOutputArchive oarchive(ss); // Create an output archive
  6.     oarchive(worldScene->entityManager()); // Write the data to the archive
  7.  
  8. }
  9. {
  10.     std::shared_ptr<CEntityManager> mgrASD;
  11.     cereal::JSONInputArchive  iarchive(ss); // Create an input archive
  12.  
  13.     iarchive(mgrASD); // Write the data to the archive
  14.  
  15.  
  16.     int i = 0;
  17. }
  18.  
  19.  
  20. //EI Tõõta
  21. std::stringstream ss; // any stream can be used
  22. {
  23.     cereal::JSONOutputArchive oarchive(ss); // Create an output archive
  24.     oarchive(worldScene->entityManager()); // Write the data to the archive
  25.    
  26.     std::shared_ptr<CEntityManager> mgrASD;
  27.     cereal::JSONInputArchive  iarchive(ss); // Create an input archive
  28.  
  29.     iarchive(mgrASD); // Write the data to the archive
  30.  
  31.  
  32.     int i = 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement