X-Git-Url: https://git.pterodactylus.net/?p=ecparse.git;a=blobdiff_plain;f=CollectionReader.h;h=ef71c72736269ce56340860c88cd7cc24b3b4813;hp=2936e2573982ba02e594aaf11426d7b881bbf87d;hb=b85b2b73e8493ad0f379da96f87d0d3e12c56413;hpb=e1f64147e3eedccbbc59658ddb6cf7992dbd50c1 diff --git a/CollectionReader.h b/CollectionReader.h index 2936e25..ef71c72 100644 --- a/CollectionReader.h +++ b/CollectionReader.h @@ -2,10 +2,11 @@ * © 2008 by David Roden */ -#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