/*************************************************************************** * Copyright (C) 2006 by Nicolas PASCAL * * pascal@icare-pc12 * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "parasolfiledata.h" int main(int argc, char *argv[]) { unsigned short nb_bytes; double slope,offset; bool show_val_display=true; string filename("/DATA/LIENS/PARASOL/OC2/2009/2009_01_01/P3L2TOGC094003KL"); PARASOLFileData pfd(filename); int nb_data=pfd.get_nb_data(); // ***** test some attributes building ***** cout<<"-------------------------------------------------------"<(pfd.read_count_data(NULL,param.c_str())); double* scaled_data = static_cast(pfd.read_scaled_data(NULL,param.c_str())); if (count_data!=NULL && scaled_data!=NULL) { if (show_val_display) { cout<<"Record\tCount\tScaled"<