This library provides the file format that was developed for the Adonthell Project to wider audience.
Status 0.1.1Early beta. The API still changes a bit. File formats are frozen (only additions). FeaturesHop over to the overview page for a schematic of the design.
Platform (Byte order independent) file format. XML file format for version control. Tools for file inspection. Checksum in binary format to avoid problems with corrupt files. One API independent of file format. C library (lowest common denominator) Simple API Dependancieszlib. libxml2 for XML format. (optional in svn) RoadmapAdd typed arrays. Add C++ interface (already usable - and used). Write GUI editor. Add Python interface. Example: Highscore #include
void put_record(abf_flat_t* flat, const char* name, record* rec)
abf_flat_t* sub = abf_create();
abf_put_string(sub, "name", rec->name);
abf_put_sint16(sub, "max_level", rec->max_level);
abf_put_float(sub, "score", rec->score);
abf_put_flat(flat, name, sub);
void save_highscore(const char* fname, record* highscore, int n)
abf_flat_t* flat = abf_create();
abf_put_uint16(flat, "n", n);
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.