Blame view

morfeusz/deserialization/InterpsGroupsReader.hpp 688 Bytes
Michał Lenart authored
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
Michał Lenart authored
11
12
13
#include "InterpsGroup.hpp"

namespace morfeusz {
Michał Lenart authored
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();
Michał Lenart authored
22
23
24
25
26

    inline void update(const unsigned char* ptr, long size) {
        this->currPtr = ptr;
        this->endPtr = ptr + size;
    }
Michał Lenart authored
27
28
29
30
31
private:
    const unsigned char* currPtr;
    const unsigned char* endPtr;
};
Michał Lenart authored
32
33
}
Michał Lenart authored
34
35
#endif	/* INTERPSGROUPSREADER_HPP */