#include #include #include "myObject.h" int main() { char *bootFile; ooHandle(ooFDObj) fdH; ooHandle(ooDBObj) dbH; ooHandle(myObject) mo1, mo2; ooTrans trans; ooInit(); trans.start(); bootFile = getenv("OO_FD_BOOT"); fdH.open(bootFile, oocUpdate); if (dbH.open(oovTopFD, "myDatabase", oocUpdate) != oocSuccess) { cout << "Could not open `myDatabase'." << endl; return 1; } mo1 = new myObject(1); mo2 = new myObject(2); dbH.close(); fdH.close(); trans.commit(); return 0; }