txt_serializable.cpp (415B)
1 #include "txt_serializable.hpp" 2 3 #include <sstream> 4 5 namespace Neptools 6 { 7 8 LIBSHIT_LUAGEN() 9 static std::string WriteTxt(TxtSerializable& ser) 10 { 11 std::stringstream ss; 12 ser.WriteTxt(ss); 13 return ss.str(); 14 } 15 16 LIBSHIT_LUAGEN() 17 static void ReadTxt(TxtSerializable& ser, const std::string& str) 18 { 19 std::stringstream ss{str}; 20 ser.ReadTxt(ss); 21 } 22 23 } 24 25 #include "txt_serializable.binding.hpp"