PVData C++
8.0.6
|
Classes | |
struct | epics::pvData::JSONPrintOptions |
Options used during printing. More... | |
Functions | |
void | epics::pvData::printJSON (std::ostream &strm, const PVStructure &val, const BitSet &mask, const JSONPrintOptions &opts=JSONPrintOptions()) |
void | epics::pvData::printJSON (std::ostream &strm, const PVField &val, const JSONPrintOptions &opts=JSONPrintOptions()) |
void | epics::pvData::printJSON (std::ostream &strm, const PVField::const_shared_pointer &val, const JSONPrintOptions &opts=JSONPrintOptions()) |
PVStructure::shared_pointer | epics::pvData::parseJSON (std::istream &strm) |
void | epics::pvData::parseJSON (std::istream &strm, PVField &dest, BitSet *assigned=0) |
void | epics::pvData::parseJSON (std::istream &strm, const PVField::shared_pointer &dest, BitSet *assigned=0) |
bool | epics::pvData::yajl_parse_helper (std::istream &src, yajl_handle handle) |
Printing PVField as JSON and parsing JSON into PVField.
PVStructure::shared_pointer epics::pvData::parseJSON | ( | std::istream & | strm | ) |
Parse JSON text into a PVStructure
Restrictions:
void epics::pvData::parseJSON | ( | std::istream & | strm, |
PVField & | dest, | ||
BitSet * | assigned = 0 |
||
) |
Parse JSON and store into the provided PVStructure.
Restrictions:
strm | Read JSON text from stream |
dest | Store in fields of this structure |
assigned | Which fields of dest were assigned. (Optional) |
std::runtime_error | on failure. dest and assigned may be modified. |
void epics::pvData::printJSON | ( | std::ostream & | strm, |
const PVStructure & | val, | ||
const BitSet & | mask, | ||
const JSONPrintOptions & | opts = JSONPrintOptions() |
||
) |
Print PVStructure as JSON
'mask' selects those fields which will be printed.
void epics::pvData::printJSON | ( | std::ostream & | strm, |
const PVField & | val, | ||
const JSONPrintOptions & | opts = JSONPrintOptions() |
||
) |
Print PVField as JSON
bool epics::pvData::yajl_parse_helper | ( | std::istream & | src, |
yajl_handle | handle | ||
) |
Wrapper around yajl_parse()
Parse entire input stream. Errors if extranious non-whitespace found after the point were parsing completes.
src | The stream from which input charactors are read |
handle | A parser handle previously allocated with yajl_alloc(). Not free'd on success or failure. |