Inactive

Project Summary

  Analyzed 9 days ago based on code collected 9 days ago.

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

typedef struct
{
char* name;
int max_level;
float score;
} record;

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);
abf_destroy(sub);
}

void save_highscore(const char* fname, record* highscore, int n)
{
abf_flat_t* flat = abf_create();
int i;
abf_put_uint16(flat, "n", n);
for (i=0;i

Share

In a Nutshell, libabf...

Languages

C
76%
C++
12%
CMake
10%
2 Other
2%
 
 

Lines of Code

 

Activity

30 Day Summary Apr 13 2013 — May 13 2013

12 Month Summary May 13 2012 — May 13 2013

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License 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.