JASSv2
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
JASS::instream_document_unicoil_json Class Reference

Extract documents from a JSON formatted UniCOIL archive. More...

#include <instream_document_unicoil_json.h>

Inheritance diagram for JASS::instream_document_unicoil_json:
Inheritance graph
[legend]
Collaboration diagram for JASS::instream_document_unicoil_json:
Collaboration graph
[legend]

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< instreamsource
 If this object is reading from another instream then this is that instream.
 
std::shared_ptr< allocatormemory
 Any and all memory allocation must happen using this object.
 

Detailed Description

Extract documents from a JSON formatted UniCOIL archive.

Member Function Documentation

◆ read()

void JASS::instream_document_unicoil_json::read ( document buffer)
virtual

Read the next document from the source instream into document.

Parameters
buffer[out] The next document in the source instream.

Implements JASS::instream.


The documentation for this class was generated from the following files: