Commit Graph

57 Commits

Author SHA1 Message Date
Michael Davidsaver af3c870b7a Value::copyIn() add Array -> Array w/ implied alloc+convert 2023-05-11 10:50:08 -07:00
Michael Davidsaver 4029f5ac3c prevent simple Any self-assignment 2023-05-11 10:50:08 -07:00
Michael Davidsaver aef69c9f25 redo INST_COUNTER
Allow for use by pvxsIoc
2023-05-09 22:24:19 -07:00
Michael Davidsaver 7d16ab3a62 fix unsigned handling
caused unwanted sign extension.
2023-03-21 08:27:40 -07:00
Michael Davidsaver 274133bcfc ~fix magic union autoselect
Stop of after first successful conversion
2023-02-12 08:26:50 -08:00
Michael Davidsaver 30b040465a fix Value::unmark() w/ parents=true 2023-02-12 08:26:50 -08:00
Michael Davidsaver b9170a9885 fix Value::nmembers 2023-02-12 08:26:50 -08:00
Michael Davidsaver e7d7f185d4 Value::lookup throw NoField 2023-01-25 22:41:25 -08:00
Michael Davidsaver 53f83b6429 Add Value::clear() 2022-11-27 08:20:13 -08:00
Michael Davidsaver f749b5ee39 minor cppcheck 2021-10-28 10:04:25 -07:00
Michael Davidsaver ba44131704 allow assign to union (fixes clone()) 2020-08-18 13:01:58 -07:00
Michael Davidsaver f4576d4c33 Include input string when reporting parsing error (as NoConvert) 2020-07-22 11:14:57 -07:00
Michael Davidsaver 90203c9b86 truncate when storing scalar numeric 2020-07-19 21:07:15 -07:00
Michael Davidsaver 06e26a0ec5 Value iteration take 3 2020-07-19 21:07:15 -07:00
Michael Davidsaver 2381f28c73 allow unselection/clear of Union/Any 2020-07-19 21:07:15 -07:00
Michael Davidsaver f22715063c allow Union deref w/o field name 2020-07-19 21:07:15 -07:00
Michael Davidsaver 290a2689fc add Value::lookup() 2020-07-16 12:37:48 -07:00
Michael Davidsaver bb7ac1e8e6 rework iteration, extend to Union 2020-07-16 12:37:48 -07:00
Michael Davidsaver 2d799c275a add Value::nmembers() 2020-07-16 12:37:48 -07:00
Michael Davidsaver b9e025a6dd Value::compareType() -> Value::equalType() 2020-07-03 20:54:47 -07:00
Michael Davidsaver 479f0f1f4d fix spelling in public headers 2020-07-03 20:54:47 -07:00
Michael Davidsaver 46bcf877c9 replace epicsParse*() with std::sto*() 2020-04-16 22:01:38 -07:00
Michael Davidsaver bc30f4c840 add Value::ifMarked() 2020-04-13 18:06:40 -07:00
Michael Davidsaver 8c7654f492 quiet some MSVC warnings 2020-04-12 23:29:30 -07:00
Michael Davidsaver 8c86aff970 consolidate Value::from() and assign() 2020-04-01 17:50:20 -07:00
Michael Davidsaver 3c937f233c support copyIn from Struct 2020-03-19 17:15:53 -07:00
Michael Davidsaver 9996abef31 fix Value::isMarked parents=true 2020-03-19 14:55:48 -07:00
Michael Davidsaver b731891c08 flase 2020-03-19 13:07:26 -07:00
Michael Davidsaver 738c454e28 resolve struct in union ambiguity in Value[] expressions 2020-03-18 09:10:53 -07:00
Michael Davidsaver 0782591053 expand Any assignment 2020-03-18 09:10:53 -07:00
Michael Davidsaver 6117de2991 Relax restrictions on Value::assign() 2020-03-12 19:52:00 -07:00
Michael Davidsaver ed0f6c3fc6 Value::assign() handle !valid() 2020-03-12 19:52:00 -07:00
Michael Davidsaver 3d3d0dcfa6 Value::Helper::build() 2020-03-12 19:52:00 -07:00
Michael Davidsaver c1c77aeb96 add TypeCode::storedAs() 2020-03-12 19:52:00 -07:00
Michael Davidsaver 1279e4fab6 remove out of date TODO 2020-03-09 16:34:18 -07:00
Michael Davidsaver ecbb06e740 trap iteration of non-Struct 2020-03-09 16:34:18 -07:00
Michael Davidsaver 6ebfa4e403 separate Value printing code 2020-03-09 16:34:17 -07:00
Michael Davidsaver 056fb2c27b fix iteration of sub-struct 2020-03-09 16:34:17 -07:00
Michael Davidsaver 85d4aa1f03 Value weak_ptr for enclosing 2020-03-05 14:11:36 -08:00
Michael Davidsaver 62ba8ceafe Value::assign() relax assignment of simple types 2020-02-29 16:47:50 -08:00
Michael Davidsaver d7c19c0c58 Value parse string -> scalar 2020-02-26 08:38:15 -08:00
Michael Davidsaver 1a286ede6e Value explicit handling of bool
all so we can know when to print/parse "true" and "false".
2020-02-03 14:57:04 -08:00
Michael Davidsaver c78ec7718b Value iteration 2020-02-03 14:54:47 -08:00
Michael Davidsaver d4f4fe970d add Value::nameOf() 2020-01-27 11:41:47 -08:00
Michael Davidsaver bbe5fa26a2 Redo FieldDesc
Follow shape of FieldStorage exactly.
Avoids need for offset calculation.
2019-12-23 19:24:11 -08:00
Michael Davidsaver 9cc742d7f9 Value marking 2019-12-23 19:19:09 -08:00
Michael Davidsaver 4b5b134e74 Value traverse to Struct parent 2019-12-23 19:19:09 -08:00
Michael Davidsaver a34fe899da minor 2019-12-23 19:19:09 -08:00
Michael Davidsaver 35dd24f46f Value::tryAs() tryFrom() 2019-12-18 18:31:59 -08:00
Michael Davidsaver cdeecdcc46 update data.h 2019-12-18 18:31:17 -08:00