|
textwolf
0.2
|
Input iterator as source for the XML scanner with the possibility of being fed chunk by chunk. More...
#include <sourceiterator.hpp>
Public Member Functions | |
| SrcIterator () | |
| Empty constructor. More... | |
| SrcIterator (const SrcIterator &o) | |
| Copy constructor. More... | |
| SrcIterator (const char *buf, std::size_t size, jmp_buf *eom_=0) | |
| Constructor. More... | |
| SrcIterator & | operator= (const SrcIterator &o) |
| Assingment operator. More... | |
| char | operator* () |
| Element access operator (required by textwolf for an input iterator) More... | |
| SrcIterator & | operator++ () |
| Prefix increment operator (required by textwolf for an input iterator) More... | |
| std::size_t | operator- (const SrcIterator &b) const |
| Get the iterator difference in bytes. More... | |
| void | putInput (const char *buf, std::size_t size, jmp_buf *eom=0) |
| Feed input to the source iterator. More... | |
| std::size_t | getPosition () const |
| Get the current position in the current chunk parsed. More... | |
| PositionIndex | position () const |
| bool | endOfChunk () const |
Additional Inherited Members | |
Public Types inherited from textwolf::throws_exception | |
| enum | Cause { Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState, InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam, IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation, FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack, CodePageIndexNotSupported } |
| Enumeration of error cases. More... | |
Input iterator as source for the XML scanner with the possibility of being fed chunk by chunk.
|
inline |
Empty constructor.
|
inline |
Copy constructor.
| [in] | o | iterator to copy |
|
inline |
Constructor.
| [in] | buf | source chunk to iterate on |
| [in] | size | size of source chunk to iterate on in bytes |
| [in] | eom_ | trigger to activate if end of data has been reached (no next chunk anymore) |
|
inline |
|
inline |
Get the current position in the current chunk parsed.
|
inline |
Element access operator (required by textwolf for an input iterator)
|
inline |
Prefix increment operator (required by textwolf for an input iterator)
|
inline |
Get the iterator difference in bytes.
|
inline |
Assingment operator.
|
inline |
|
inline |
Feed input to the source iterator.
| [in] | buf | poiner to start of input |
| [in] | size | size of input passed in bytes |
| [in] | eom | longjmp to call with parameter 1, if the end of data has been reached before EOF (null termination), eom=null, if the chunk passed contains the complete reset of the input and eof (null) can be returned if we reach the end |
1.8.6