liborigin2 13/09/2010
/builddir/build/BUILD/liborigin2-20101029/Origin800Parser.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : Origin800Parser.h
00003     --------------------------------------------------------------------
00004     Copyright            : (C) 2010 Ion Vasilief
00005     Email (use @ for *)  : ion_vasilief*yahoo.fr
00006     Description          : Origin 8.0 file parser class
00007 
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *  This program is free software; you can redistribute it and/or modify   *
00013  *  it under the terms of the GNU General Public License as published by   *
00014  *  the Free Software Foundation; either version 2 of the License, or      *
00015  *  (at your option) any later version.                                    *
00016  *                                                                         *
00017  *  This program is distributed in the hope that it will be useful,        *
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00020  *  GNU General Public License for more details.                           *
00021  *                                                                         *
00022  *   You should have received a copy of the GNU General Public License     *
00023  *   along with this program; if not, write to the Free Software           *
00024  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00025  *   Boston, MA  02110-1301  USA                                           *
00026  *                                                                         *
00027  ***************************************************************************/
00028 
00029 #ifndef ORIGIN_800_PARSER_H
00030 #define ORIGIN_800_PARSER_H
00031 
00032 #include "Origin750Parser.h"
00033 
00034 class Origin800Parser : public Origin750Parser
00035 {
00036 public:
00037     Origin800Parser(const string& fileName);
00038     bool parse();
00039 
00040 protected:
00041     void readSpreadInfo();
00042     void readMatrixInfo();
00043     void readGraphInfo();
00044     void readColumnInfo(int spread, int);
00045     void skipObjectInfo();
00046     void readResultsLog();
00047     virtual void readNotes();
00048 
00049     bool findSection(const string& name, unsigned int length, unsigned int maxLength = 0);
00050     unsigned int findStringPos(const string& name);
00051 
00052     string notes_pos_mark;
00053 };
00054 
00055 #endif // ORIGIN_800_PARSER_H