projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start implementation of binary parsing
[ecparse.git]
/
CollectionReader.h
diff --git
a/CollectionReader.h
b/CollectionReader.h
index
5e10c51
..
72f652a
100644
(file)
--- a/
CollectionReader.h
+++ b/
CollectionReader.h
@@
-5,6
+5,8
@@
#pragma once
#include "ReaderInput.h"
#pragma once
#include "ReaderInput.h"
+#include "ED2KLink.h"
+#include "GrowingBuffer.h"
class CollectionReader {
class CollectionReader {
@@
-12,8
+14,20
@@
public:
CollectionReader(ReaderInput* readerInput);
~CollectionReader();
CollectionReader(ReaderInput* readerInput);
~CollectionReader();
+ ED2KLink* getNextLink();
+
+private:
+ void identifyCollectionType();
+ bool isLineBreakPresent();
+ bool ensureBufferCapacity(size_t byteCount);
+ void readMoreBytes();
+
private:
ReaderInput* readerInput;
private:
ReaderInput* readerInput;
+ GrowingBuffer growingBuffer;
+ int version;
+ bool firstLink;
+ bool isTextCollection;
};
};