#include #include #include #include #include "OPJFile.h" #define VERSION 20051127 int main(int argc, char *argv[]) { if(argc != 2) { printf("Usage : ./opj2dat \n"); return -1; } printf("opj2dat %d, Copyright (C) 2005 Stefan Gerlach\n",VERSION); OPJFile opj(argv[1]); opj.Parse(); printf("OPJ PROJECT \"%s\" VERSION = %.2f\n",argv[1],opj.Version()); printf("NUMBER OF SPREADSHEETS = %d\n",opj.numSpreads()); for (int s=0;s2.0e-300) fprintf(out,"%g ",v); } } fprintf(out,"\n"); } } }