Michael Davidsaver
c3b0b49e3f
use FieldBuilder::begin() and Field::build()
2018-10-16 20:52:38 -07:00
c5f9f5a2dc
link with rt when using clock_gettime()
2018-09-19 10:49:14 -07:00
Michael Davidsaver
3d707e5e95
Field de-duplication performance test
2018-07-06 12:01:15 -07:00
Michael Davidsaver
0406a2f614
Field de-duplication
...
add a global cache of Field instances to
allow O(0) comparison of types.
2018-07-06 12:01:14 -07:00
Michael Davidsaver
3e25c2ea46
fix more printf specs
2018-01-04 11:52:19 -08:00
Michael Davidsaver
fc38dff3b0
testPVData: clarify getSubField() by index on sub-struct
2017-11-07 08:18:12 -06:00
Michael Davidsaver
594a29b2db
add PVScalar::putFrom/getAs variants for AnyScalar
2017-09-30 10:04:31 -05:00
Michael Davidsaver
822173979c
FieldBuilder::add() ignore exact duplicates
2017-09-21 13:41:11 -05:00
Michael Davidsaver
9bce66f307
FieldBuilder edit union/structureArray/unionArray
...
Allow appending fields to existing types
to allow structure-like types
2017-09-21 13:41:11 -05:00
Michael Davidsaver
0b262baf97
fix getSubField() by index
2017-08-16 16:29:06 +02:00
Michael Davidsaver
dccf6193da
more doc
2017-07-13 18:25:25 +02:00
Michael Davidsaver
918b7f96db
valueBuilder: support scalar array fields
2017-07-12 18:33:20 +02:00
Michael Davidsaver
8a7b9d776f
requester.h moves to pvAccessCPP
2017-07-12 13:13:44 +02:00
Michael Davidsaver
db8d4b4347
fix # of tests
2017-07-03 18:35:57 +02:00
Michael Davidsaver
bef616632c
add ValueBuilder
2017-07-03 17:34:38 +02:00
Michael Davidsaver
66633a7728
test cleanup
...
remove compile time "debug" flag from from tests.
use testDiag() instead
2017-06-26 15:16:43 +02:00
Michael Davidsaver
6e62e123e8
FieldBuilder allow append to Structure
...
Helpful to allow a new definition to be created
as an extension of an existing definition.
2017-05-15 12:46:32 -04:00
Michael Davidsaver
262df56024
testFieldBuilder: cleanup
2017-05-12 14:26:18 -04:00
Michael Davidsaver
08fc3cab38
update testPVUnion
2017-04-15 16:19:23 -04:00
Dave Hickin
d9072402db
Update source boilerplate for new LICENSE file
2016-07-22 15:56:43 +01:00
Dave Hickin
1e980651a9
Use template getSubField when type known
...
Replace non-template getSubField with template version when PVField is
of a known, derived type.
2016-07-04 17:03:07 +01:00
Michael Davidsaver
dc94b26e50
fix static_shared_vector_cast<>() no-op casting
...
Turns out that Enablers as typically used for
member functions don't work to select
constructors.
Move this selection logic to
struct detail::static_shared_vector_caster<>
to correctly allow no-op casts (eg. void to void).
Previously this would not compile.
Allows PVScalarArray getAs() and putFrom() using
shared_vector<const void>.
2016-02-26 12:13:23 -05:00
Michael Davidsaver
3b2e9b2485
move all headers to pv/
2016-02-10 14:40:29 +00:00
Michael Davidsaver
3714be4f16
fail zero length field names
2015-09-24 13:04:49 -04:00
Michael Davidsaver
f24f565e58
validate field names
...
check for invalid characters in field names (eg '.').
Restrict character set to ascii alpha numeric and '_'.
2015-09-23 15:32:46 -04:00
Andrew Johnson
f6cf87a52d
Fix build problem on Mac
...
../../testApp/pv/testPVData.cpp:549:14: error: use of overloaded operator '!='
is ambiguous (with operand types 'PVIntPtr' (aka 'shared_ptr<PVInt>') and
'long')
testOk1(a!=NULL);
~^ ~~~~
2015-08-12 15:06:46 -05:00
Dave Hickin
5834efb709
Remove calls of deprecated getScalarArrayField
2015-07-24 11:21:58 +01:00
Dave Hickin
ac2b6ea8db
Make getSubFieldT return shared pointer
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 12:48:05 +01:00
Dave Hickin
ebe2d6196c
Rename getAs getSubFieldT
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 12:34:15 +01:00
Dave Hickin
e4689dd3f8
Added unit tests for functions for getting subfields
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 12:07:54 +01:00
Dave Hickin
d9963b0631
Add test for getAs when mid-field not structure
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-09 13:22:42 +01:00
Dave Hickin
40952df965
Corrected spelling in test and exception messages
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-08 18:19:53 +01:00
Dave Hickin
4f2c51c480
Correct spelling and typos in doxygen and comments
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-08 18:18:37 +01:00
Marty Kraimer
1e646f8df1
Merge pull request #4 from mdavidsaver/getasfield
...
Add PVStructure::getAs<>()
2015-06-23 07:24:30 -04:00
Michael Davidsaver
eadb8ff65b
add PVStructure::getAs<>() for field access w/o NULL
2015-06-22 18:14:23 -04:00
Michael Davidsaver
6a80e941a0
replace use of depercated methods
2015-06-22 14:36:27 -04:00
Matej Sekoranja
a1b89c9a3b
PVScalar::copy made public; copy tests
2015-02-17 21:54:35 +01:00
Matej Sekoranja
d6921fdac0
removal of some methods from convert
2015-02-17 20:22:37 +01:00
Matej Sekoranja
b13bb9819a
updated testPlan(0) to actual value
2015-02-11 20:56:38 +01:00
Marty Kraimer
6cb95c5cfc
fixed possible SEGFAULT in ceateRequest; new stream operator for Field and PVField
2015-02-11 07:26:04 -05:00
Matej Sekoranja
f2b43b704c
rtems compilation warnings (int32 != int)
2014-11-26 14:12:09 +01:00
Matej Sekoranja
554dc06eda
ScalarTypeID mapping fixed in case 'int' == 'long', e.g. RTEMS-i386
2014-11-05 13:52:10 +01:00
Matej Sekoranja
5b1b5ab904
tests: refactored test building so that one test object can be created for VxWorks and RTEMS
2014-10-31 18:29:55 +01:00
Matej Sekoranja
80a537bc4c
vxWork tests for all subtests; still need to combine them all to one
2014-10-31 07:57:20 -04:00
Matej Sekoranja
2a8a1d3736
tests: PROD_HOST to TESTPROD_HOST; VxWorks tests for testApp/pv PASSES
2014-10-31 06:42:52 -04:00
Marty Kraimer
15d85c2f87
fix misspelled field names: nanoSecond => nanosecond; hystersis=>hysteresis
2014-08-20 06:27:24 -04:00
Matej Sekoranja
37f6dff065
bounded string
2014-08-19 20:42:15 +02:00
Matej Sekoranja
57e33c8f7d
clang porting
2014-08-13 09:36:37 +02:00
Matej Sekoranja
622e140622
Fixed/bounded scalar array impl.
2014-07-30 21:41:08 +02:00
Marty Kraimer
a4954c3825
fixed bug in createRequest.cpp
2014-07-30 06:50:22 -04:00