liborigin  2.0.0
Origin800Parser.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : Origin800Parser.h
3  --------------------------------------------------------------------
4  Copyright : (C) 2010 Ion Vasilief
5  Email (use @ for *) : ion_vasilief*yahoo.fr
6  Description : Origin 8.0 file parser class
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  * This program is distributed in the hope that it will be useful, *
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20  * GNU General Public License for more details. *
21  * *
22  * You should have received a copy of the GNU General Public License *
23  * along with this program; if not, write to the Free Software *
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
25  * Boston, MA 02110-1301 USA *
26  * *
27  ***************************************************************************/
28 
29 #ifndef ORIGIN_800_PARSER_H
30 #define ORIGIN_800_PARSER_H
31 
32 #include "Origin750Parser.h"
33 
35 {
36 public:
37  Origin800Parser(const string& fileName);
38  bool parse();
39 
40 protected:
41  void readSpreadInfo();
42  void readMatrixInfo();
43  void readGraphInfo();
44  void readColumnInfo(int spread, int);
45  void skipObjectInfo();
46  void readResultsLog();
47  virtual void readNotes();
48 
49  bool findSection(const string& name, unsigned int length, unsigned int maxLength = 0);
50  unsigned int findStringPos(const string& name);
51 
53 };
54 
55 #endif // ORIGIN_800_PARSER_H
unsigned int findStringPos(const string &name)
Definition: Origin800Parser.cpp:2009
void readResultsLog()
Definition: Origin800Parser.cpp:574
void skipObjectInfo()
Definition: Origin800Parser.cpp:1967
virtual void readNotes()
Definition: Origin800Parser.cpp:470
void readSpreadInfo()
Definition: Origin800Parser.cpp:590
bool parse()
Definition: Origin800Parser.cpp:39
void readGraphInfo()
Definition: Origin800Parser.cpp:1097
string notes_pos_mark
Definition: Origin800Parser.h:52
Definition: Origin800Parser.h:34
void readMatrixInfo()
Definition: Origin800Parser.cpp:979
bool findSection(const string &name, unsigned int length, unsigned int maxLength=0)
Definition: Origin800Parser.cpp:2042
Definition: Origin750Parser.h:42
Origin800Parser(const string &fileName)
Definition: Origin800Parser.cpp:31
void readColumnInfo(int spread, int)
Definition: Origin800Parser.cpp:834