|
PVData C++
8.0.2
|
Classes | |
| struct | epics::pvData::JSONPrintOptions |
| Options used during printing. More... | |
Functions | |
| epicsShareFunc void | epics::pvData::printJSON (std::ostream &strm, const PVStructure &val, const BitSet &mask, const JSONPrintOptions &opts=JSONPrintOptions()) |
| epicsShareFunc 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()) |
| epicsShareFunc PVStructure::shared_pointer | epics::pvData::parseJSON (std::istream &strm) |
| epicsShareFunc 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) |
| epicsShareFunc bool | epics::pvData::yajl_parse_helper (std::istream &src, yajl_handle handle) |
Printing PVField as JSON and parsing JSON into PVField.
| epicsShareFunc PVStructure::shared_pointer epics::pvData::parseJSON | ( | std::istream & | strm | ) |
Parse JSON text into a PVStructure
Restrictions:
| epicsShareFunc 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. |
| epicsShareFunc 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.
| epicsShareFunc void epics::pvData::printJSON | ( | std::ostream & | strm, |
| const PVField & | val, | ||
| const JSONPrintOptions & | opts = JSONPrintOptions() |
||
| ) |
Print PVField as JSON
| epicsShareFunc 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. |
1.8.13