Skip to content

sastpg/Object-Serialization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Serialization

Object Oriented Programming Project in ZJU.

Compile and Run

Using commands in terminal to construct:

mkdir build
cd build
cmake ..
make
cd ..

To make things easy, I provided a shell test.sh. We can simply use the command ./test.sh to construct.

After that, using commands in terminal to run:

mkdir test
rm -f test/*
cd bin
./test.out

Test

All test results will be generated in directory ./bin/test_all.txt. Some Intermediate results will be generated in directory ./test/*.

Note: Intermediate results of XML serialization are deleted in the process of XML deserialization. If you want to see the intermediate results, you can comment the part of XML deserialization.

Using commands ./bin/test.out to check whether all object can be serialization / deserialization correctly.

Functions

  • 🎉 Supported binary serialization/deserialization from a std type and user defined type
  • 🍀 Supported binary serialization/deserialization from smart pointers
  • 🏁 Supported XML serialization/deserialization from a std type and user defined type
  • 💃🏻 Supported XML serialization/deserialization from smart pointers

Bugs

Due to some bugs in tinyxml2, so there might be some bugs in XML serialization.

Address

Project address : My Github

@copyright Copyright (c) 2022

About

A tool for object serialization/deserialization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages