bigasdev / castledb-cpp-parser

A simple cpp parser for CastleDB

Home Page:https://bigasdev.net/?tab=home

Repository from Github https://github.combigasdev/castledb-cpp-parserRepository from Github https://github.combigasdev/castledb-cpp-parser

CastleDB-cpp-parser

Quickly parse your CastleDB for use in your C++ codebase. It supports hot reload!

Usage

Include the files located in the .src/ folder in your codebase, then instantiate the CastleDBConverter class constructor to retrieve the data.

CastleDBConverter converter("res/helloworld.json");

Then extract your data, a nice feature is that you can grab only the fields you need.

                                //sheet name   //fields
data_db = converter.extract_data("HelloWorld", {"Name", "X", "Y", "Char"});

Use the update method to check for updates in the file for hot reload support

if(converter.update("res/helloworld.json")){
    //your code
}

Thanks

Thanks for ncannasse for the creation of CastleDB and to nlohmann for json parser

About

A simple cpp parser for CastleDB

https://bigasdev.net/?tab=home

License:MIT License


Languages

Language:C++ 100.0%