free line after parsing link
[ecparse.git] / CollectionReader.h
1 /**
2  * © 2008 by David Roden <droden@gmail.com>
3  */
4
5 #pragma once
6
7 #include "ReaderInput.h"
8 #include "ED2KLink.h"
9 #include "GrowingBuffer.h"
10
11 class CollectionReader {
12
13 public:
14         CollectionReader(ReaderInput* readerInput);
15         ~CollectionReader();
16
17         ED2KLink* getNextLink();
18
19 private:
20         void identifyCollectionType();
21         bool isLineBreakPresent();
22         void readMoreBytes();
23
24 private:
25         ReaderInput* readerInput;
26         GrowingBuffer growingBuffer;
27         int version;
28         bool firstLink;
29         bool isTextCollection;
30
31 };
32