![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Namespaces | |
epics::pvData::yajl | |
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) |
void | epics::pvData::printJSON (std::ostream &strm, const PVField &val, const JSONPrintOptions &opts) |
FORCE_INLINE void | epics::pvData::printJSON (std::ostream &strm, const PVField::const_shared_pointer &val, const JSONPrintOptions &opts=JSONPrintOptions()) |
epics::pvData::PVStructure::shared_pointer | epics::pvData::parseJSON (std::istream &strm) |
epicsShareFunc void | epics::pvData::parseJSON (std::istream &strm, PVField &dest, BitSet *assigned) |
FORCE_INLINE 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.
FORCE_INLINE void epics::pvData::parseJSON | ( | std::istream & | strm, |
const PVField::shared_pointer & | dest, | ||
BitSet * | assigned = 0 |
||
) |
Definition at line 109 of file json.h.
epicsShareFunc PVStructure::shared_pointer epics::pvData::parseJSON | ( | std::istream & | strm | ) |
Parse JSON text into a PVStructure
Restrictions:
Definition at line 255 of file parseany.cpp.
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. |
Definition at line 311 of file parseinto.cpp.
FORCE_INLINE void epics::pvData::printJSON | ( | std::ostream & | strm, |
const PVField::const_shared_pointer & | val, | ||
const JSONPrintOptions & | opts = JSONPrintOptions() |
||
) |
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.
Definition at line 211 of file print.cpp.
epicsShareFunc void epics::pvData::printJSON | ( | std::ostream & | strm, |
const PVField & | val, | ||
const JSONPrintOptions & | opts = JSONPrintOptions() |
||
) |
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. |
Definition at line 29 of file parsehelper.cpp.