Skip to content

bigasdev/castledb-cpp-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages