Memosa-FVM  0.2
SchemeReader.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _SCHEMEREADER_H_
6 #define _SCHEMEREADER_H_
7 
8 #include <iostream>
9 #include "Reader.h"
10 
11 using namespace std;
12 
13 class SchemeReader : public Reader
14 {
15 public:
16  SchemeReader(const string& fileName);
17  virtual ~SchemeReader();
18 
19 protected:
20  int getNextSection();
21  void closeSection();
22  int closeSectionBinary(const int currentId);
23 
24  int readInt(const bool isBinary);
25  void skipInt(const int n, const bool isBinary);
26 
27  char getNextChar();
28  int moveToListOpen();
29  void moveToListClose();
30  void moveToListCloseBinary();
31  void readHeader(int& i1, int& i2, int& i3, int& i4, int& i5);
32 
33  int readListLength();
34  void readList(char *buffer);
35 };
36 
37 #endif
Definition: Reader.h:15