free line after parsing link
[ecparse.git] / CollectionReader.h
index 2936e25..ef71c72 100644 (file)
@@ -2,10 +2,11 @@
  * © 2008 by David Roden <droden@gmail.com>
  */
 
-#ifndef __ECPARSE_COLLECTIONREADER_H__
-#define __ECPARSE_COLLECTIONREADER_H__
+#pragma once
 
 #include "ReaderInput.h"
+#include "ED2KLink.h"
+#include "GrowingBuffer.h"
 
 class CollectionReader {
 
@@ -13,9 +14,19 @@ public:
        CollectionReader(ReaderInput* readerInput);
        ~CollectionReader();
 
+       ED2KLink* getNextLink();
+
+private:
+       void identifyCollectionType();
+       bool isLineBreakPresent();
+       void readMoreBytes();
+
 private:
        ReaderInput* readerInput;
+       GrowingBuffer growingBuffer;
+       int version;
+       bool firstLink;
+       bool isTextCollection;
 
 };
 
-#endif