Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added basic serialization support #7

Merged
merged 41 commits into from
Nov 19, 2018
Merged

Added basic serialization support #7

merged 41 commits into from
Nov 19, 2018

Conversation

vsg-dev
Copy link
Owner

@vsg-dev vsg-dev commented Nov 19, 2018

Description

Introduction of serailization support for vsg::Object and it's subclasses.

New base vsg::Input and vsg::Output classes provide the abstraction from the task of input and outputting raw data.

The AsciiInput/AsciiOutput classes provide preliminary .vsga native ascii file support.

The BinaryInput/BinaryOutput classes provide preliminary .vsgb native binary file support.

include/vsg/type_name.h now provides a vsg::type_name<>() templated interface for getting human readable type names.

Please delete options that are not relevant.

  • [x ] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

The vsgExamples/vsgio testbed application, tests include 10 level deep quad tree:

Reading and writing binary files:

vsgio -l 10 -o level_10.vsgb
vsgio -i level_10.vsgb -o level_10_result.vsgb

Reading and writing ascii files:

vsgio -l 10 -o level_10.vsga
vsgio -i level_10.vsga -o level_10_result.vsga

Checklist:

  • [x ] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [ x] My changes generate no new warnings
  • [ x] I have added tests that prove my fix is effective or that my feature works

Added vsg:: prefix to type_name entries
Introduced use of macros to streamline the setup of the ObjectFactory
Implemented basic serializer support for a range of classes.
…g in clang-format for making a mess of indentation. Had to remove -pedantic gcc warning to aovid the ; being reported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants