1#ifndef Cpl_Json_ObjectDetector_h_
2#define Cpl_Json_ObjectDetector_h_
81 bool scan(
const void* inputStream,
82 size_t numBytesToScan,
This helper class is used to determine when an entire Json object has been read from an input source.
Definition ObjectDetector.h:61
size_t m_braceCount
Number of '{' encountered.
Definition ObjectDetector.h:107
State_T m_state
Quoted key/value state.
Definition ObjectDetector.h:110
bool scan(const void *inputStream, size_t numBytesToScan, size_t &startOffset, size_t &endOffset)
Inspect 'numBytes' and returns true if a complete JSON object was found.
State_T
Detector state.
Definition ObjectDetector.h:92
size_t m_offset
Current offset.
Definition ObjectDetector.h:101
size_t m_startOffset
Offset of the initial '{'.
Definition ObjectDetector.h:104
void reset()
Resets the detector to being looking for a new JSON object.
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20