Basic Usage
In this example the access to basic datastructures defined in the ViennaIPD file, which has been introduced in the first example, is depicted.
Basic ViennaIPD API usage
#include "ipd.h" int main(int argc, char** argv) { // some variables ipdLong i; ipdChar *s; // inititalize the ViennaIPD library ipdInit(NULL, NULL); // create a database with an arbitrary name ipdCreateBase("NameOfTheDatabase", 0); // read a ViennaIPD file ipdReadInputDeck("viennaipd.ipd"); // access the data of various ViennaIPD objects ipdGetStringByName("~a", &s); // member data can be accessed too ipdGetIntegerByName("~Double.d", &i); // free the ViennaIPD internal datastructures ipdFreeAll(); return 0; }