Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
3851 cerr<<
"ERROR: <"<<error<<
">"<<endl;
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1781
uint16_t model
Device Model.
Definition: jsondef.h:1589
rwstruc rw
Definition: jsondef.h:3713
uint16_t portidx
Connection information for device.
Definition: jsondef.h:1603
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2794
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2684
Definition: json11.hpp:79
float power
Current Power.
Definition: jsondef.h:1613
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2027
float volt
Current Voltage.
Definition: jsondef.h:1611
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2893
uint16_t pidx
Piece index.
Definition: jsondef.h:1599
tcustruc tcu
Definition: jsondef.h:3719
float energy
Total energy usage.
Definition: jsondef.h:1615
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2565
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2767
diskstruc disk
Definition: jsondef.h:3701
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2728
float drate
Current data rate.
Definition: jsondef.h:1617
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3167
txrstruc txr
Definition: jsondef.h:3725
uint16_t didx
Device specific index.
Definition: jsondef.h:1597
allstruc all
Definition: jsondef.h:3694
uint16_t type
Component Type.
Definition: jsondef.h:1587
uint16_t bidx
Power Bus index.
Definition: jsondef.h:1601
suchistruc suchi
Definition: jsondef.h:3717
float amp
Current Amperage.
Definition: jsondef.h:1609
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3054
rotstruc rot
Definition: jsondef.h:3712
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3093
motrstruc motr
Definition: jsondef.h:3706
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1839
tncstruc tnc
Definition: jsondef.h:3723
static double * p
Definition: gauss_jackson_test.cpp:42
float namp
Nominal Amperage.
Definition: jsondef.h:1605
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2967
mtrstruc mtr
Definition: jsondef.h:3707
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3126
double utc
Device information time stamp.
Definition: jsondef.h:1621
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2825
rxrstruc rxr
Definition: jsondef.h:3714
bool enabled
Enabled?
Definition: jsondef.h:1585
static void dump(NullStruct, string &out)
Definition: json11.cpp:53
htrstruc htr
Definition: jsondef.h:3703
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2628
gpsstruc gps
Definition: jsondef.h:3702
bool bool_value() const
Definition: json11.cpp:282
pvstrgstruc pvstrg
Definition: jsondef.h:3711
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2096
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3215
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2470
uint32_t flag
Device flag - catch all for any small piece of information that might be device specific.
Definition: jsondef.h:1591
sttstruc stt
Definition: jsondef.h:3716
mccstruc mcc
Definition: jsondef.h:3705
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2293
uint16_t addr
Device specific address.
Definition: jsondef.h:1593
float temp
Current Temperature.
Definition: jsondef.h:1619
imustruc imu
Definition: jsondef.h:3704
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1965
swchstruc swch
Definition: jsondef.h:3718
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3247
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1734
uint16_t cidx
Component Index.
Definition: jsondef.h:1595
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1657
psenstruc psen
Definition: jsondef.h:3710
ploadstruc pload
Definition: jsondef.h:3708
tcvstruc tcv
Definition: jsondef.h:3720
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3013
bcregstruc bcreg
Definition: jsondef.h:3697
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2378
propstruc prop
Definition: jsondef.h:3709
busstruc bus
Definition: jsondef.h:3698
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:3267
telemstruc telem
Definition: jsondef.h:3721
battstruc batt
Definition: jsondef.h:3696
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2920
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2864
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:1900
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2142
antstruc ant
Definition: jsondef.h:3695
float nvolt
Nominal Voltage.
Definition: jsondef.h:1607
int int_value() const
Definition: json11.cpp:281
cpustruc cpu
Definition: jsondef.h:3700
ssenstruc ssen
Definition: jsondef.h:3715
void from_json(const string &s)
Set class contents from JSON string.
Definition: jsondef.h:2222
tsenstruc tsen
Definition: jsondef.h:3724
camstruc cam
Definition: jsondef.h:3699
double number_value() const
Definition: json11.cpp:280
thststruc thst
Definition: jsondef.h:3722