|
JASSv2
|
Extract documents from a JSON formatted UniCOIL archive. More...
#include <instream_document_unicoil_json.h>


Public Member Functions | |
| instream_document_unicoil_json (std::shared_ptr< instream > &source) | |
| Constructor. | |
| virtual | ~instream_document_unicoil_json () |
| Destructor. | |
| virtual void | read (document &buffer) |
| Read the next document from the source instream into document. More... | |
Public Member Functions inherited from JASS::instream | |
| instream (std::shared_ptr< instream > &source, std::shared_ptr< allocator > &memory) | |
| Constructor. More... | |
| instream (std::shared_ptr< instream > &source) | |
| Constructor. More... | |
| instream (void) | |
| Constructor. | |
| virtual | ~instream () |
| Destructor. More... | |
| size_t | fetch (void *buffer, size_t bytes) |
| fetch() generates a document object, sets its contents to the passed buffer, calls read() and returns the number of bytes of data read More... | |
Static Public Member Functions | |
| static void | unittest (void) |
| Unit test this class. | |
Private Attributes | |
| size_t | buffer_size |
| Current size of the buffer. | |
| std::string | buffer |
| An internal buffer used to store lines. | |
| const char * | buffer_start |
| Pointer to the current working point in the buffer;. | |
| const char * | buffer_end |
| Pointer to the end of the buffer. | |
Additional Inherited Members | |
Protected Attributes inherited from JASS::instream | |
| std::shared_ptr< instream > | source |
| If this object is reading from another instream then this is that instream. | |
| std::shared_ptr< allocator > | memory |
| Any and all memory allocation must happen using this object. | |
Extract documents from a JSON formatted UniCOIL archive.
|
virtual |
Read the next document from the source instream into document.
| buffer | [out] The next document in the source instream. |
Implements JASS::instream.
1.8.13