|
1
2
3
4
5
6
7
8
9
10
|
/*
* File: InterpsGroupsReader.hpp
* Author: mlenart
*
* Created on 16 maj 2014, 12:50
*/
#ifndef INTERPSGROUPSREADER_HPP
#define INTERPSGROUPSREADER_HPP
|
|
11
12
13
|
#include "InterpsGroup.hpp"
namespace morfeusz {
|
|
14
15
16
17
18
19
20
21
|
class InterpsGroupsReader {
public:
InterpsGroupsReader();
InterpsGroupsReader(const unsigned char* ptr, long size);
virtual ~InterpsGroupsReader();
bool hasNext() const;
InterpsGroup getNext();
|
|
22
23
24
25
26
|
inline void update(const unsigned char* ptr, long size) {
this->currPtr = ptr;
this->endPtr = ptr + size;
}
|
|
27
28
29
30
31
|
private:
const unsigned char* currPtr;
const unsigned char* endPtr;
};
|
|
32
33
|
}
|
|
34
35
|
#endif /* INTERPSGROUPSREADER_HPP */
|