Module cpp

Module cpp 

Source
Expand description

This module handles generation of c++ code to support a data model, it includes the ability to create a header file, (de)serialization and documentation.

For any data model to work the termite dependency must be generatred from get_termite_dependency() and be saved as “termite.hpp” at a location where it can be included as “#include <termite.hpp>”

Structs§

DataModel
An entire data model
Error
Errors for when converting generic data models into c++ data models including location

Enums§

ErrorCore
Errors for when converting generic data models into c++ data models

Functions§

get_json_interface
Obtains the nlohmann::json interface header and source for reading and writing json files
get_termite_dependency
Obtains the base termite c++ dependency required for all generated data models
get_yaml_interface
Obtains the yaml-cpp interface header and source for reading and writing yaml files