Commit Graph

109 Commits

Author SHA1 Message Date
Michael Davidsaver
1f7667b22d drop prototype PVNTField::createAlarmLimit
not implemented.
2017-12-19 17:15:37 -06:00
Michael Davidsaver
2f4c0eea9d missing include 2017-12-12 09:43:25 -06:00
Michael Davidsaver
91c5136883 Test for missing "attribute" array in NTNDArray 2017-11-21 10:59:23 -06:00
Bruno Martins
4b0970ffcb Set tags to false inside reset. Fixes #11 2017-07-26 17:19:45 +02:00
Dave Hickin
048d6ef737 NTUnionBuilder: Add missing value() function
Add missing function NTUnionBuilder::value() to allow the union type of
the NTUnion's value field to be specified.
2016-09-09 18:07:59 +01:00
Dave Hickin
0ce3613acc SHRLIB: Set version to 5.2 2016-07-22 17:06:37 +01:00
Dave Hickin
d13696f943 SHRLIB: Add ABI version (5.1) 2016-07-22 17:01:38 +01:00
Dave Hickin
e6597bc2f0 Update source boilerplate for new LICENSE file 2016-07-22 16:56:01 +01:00
Dave Hickin
ff4b88754f Add missing is_a(PVStructurePtr) implementations 2016-04-12 03:19:42 +01:00
Dave Hickin
6dd63a74a6 Make addTags() non-virtual 2016-02-16 08:32:27 +00:00
Michael Davidsaver
4f3f6784d4 adjust Makefiles 2016-02-09 19:25:37 -05:00
Michael Davidsaver
cfe939ca7a Moves source and headers
src/nt/*.h   => src/pv/*.h
src/nt/*.cpp => src/*.cpp
test/nt/*.*  => test/*.*
2016-02-09 19:25:37 -05:00
Dave Hickin
3b645933f5 Javadoc corrections 2015-10-16 19:19:58 +01:00
Dave Hickin
5cca3a10ac Rename variable to match header. 2015-10-16 15:47:38 +01:00
Dave Hickin
bab0d964ab Add missing implementation of NTScalarArray::value
Use value in unit tests instead of deprecated arrayValue.
2015-10-16 15:46:56 +01:00
Dave Hickin
51d4d270cd Multiple Doxygen improvements 2015-10-16 15:42:56 +01:00
Dave Hickin
a1ac2f41b4 Doxygen fix 2015-10-09 11:44:36 +01:00
Dave Hickin
2bc01a482e Doxygen fixes 2015-09-05 07:34:18 +01:00
Dave Hickin
a0a19bcfd9 Fix bug in NTUtils::is_a
Previous implementation matches <type-name>:1x.0 and <type-name>:1.0,
depending on the order of the arguments, e.g.
NTUtils::is_a("epics:nt/NTTable:11.0", "epics:nt/NTTable:1.0") returned
true. Fix this and add unit tests to cover this.
2015-09-04 09:39:27 +01:00
Dave Hickin
16b46448c0 License and copyright
Replaced references to "EPICS pvData" and "EPICS JavaIOC" with "this
software" in per-file copyright notice - consistent with other files.
Add BNL and DLS to copyright and legal disclaimers.
2015-09-04 09:24:54 +01:00
Dave Hickin
db0d1e8f9e Fix for NTHistogram::isCompatible()
Correct null pointer check - logic was inverted
2015-09-04 00:33:06 +01:00
Dave Hickin
99f9e0429f Remove duplicate NTField 2015-09-03 14:10:08 +01:00
Dave Hickin
3dc852e2b7 Delete commented out code 2015-09-03 14:09:36 +01:00
Dave Hickin
d9c3dfcf26 Use NTNDArrayAttribute in constructing NTNDArray
Use NTNDArrayAttribute wrapper to construct NTAttributes in NTNDArray.
Delete unused attribute string.
2015-09-03 14:08:56 +01:00
Matej Sekoranja
4f38e7904d fixed rtems/vxworks compilation 2015-09-01 21:12:47 +02:00
Matej Sekoranja
ad03935c5b Merge pull request #4 from anjohnson/add-license-file
Add license and copyright files
2015-09-01 20:06:49 +02:00
Dave Hickin
649cd6800d Make isConnected optional in multi channel types 2015-09-01 15:55:21 +01:00
Dave Hickin
05a7a6923f Implement NTNDArray::isValid() 2015-09-01 15:53:52 +01:00
Dave Hickin
f5226f23dc Implement NTNDArray::isCompatible(Structure)
Add implementation of NTNDArray::isCompatible(Structure). Implement
NTNDArray::isCompatible(PVStructure) in terms of this.
2015-09-01 15:53:09 +01:00
Dave Hickin
e1fdcfcab0 Add implementation of NTID 2015-09-01 15:50:18 +01:00
Dave Hickin
5ec16a1772 Fix build error
boolean replaced by bool
2015-09-01 02:40:14 +01:00
Dave Hickin
ba64c6a6a5 Add isValid() implementations
for NTMultiChannel, NTScalarMultiChannel, NTTable and NTURI.
2015-08-31 23:53:10 +01:00
Dave Hickin
ed9a707f14 More efficient implementation of NTTable
Cache the value field. Allows simpler implementation of getColumn().
2015-08-31 23:50:51 +01:00
Dave Hickin
6ec5fb6ef9 Add implentations of isValid()
for NTAggregate, NTAttibute, NTContinuum, NTEnum, NTHistogram, NTMatrix,
NTNameValue, NTNDArrayAttribute, NTScalar, NTScalarArray and NTUnion.
2015-08-30 23:46:02 +01:00
Dave Hickin
ddab44823f Use NTAttribute wrapper in NTNDArray
Use the wrapper NTAttribute wrapper NTNDArrayAttribute to test the
attribute field in implementation of NTNDArray::isCompatible(Structure).
2015-08-29 11:09:32 +01:00
Dave Hickin
d54060576a Add implementation of isCompatible(Structure)
for all types except NTNDArray and implement isCompatible(PVStructure)
in terms of it.
2015-08-29 11:06:37 +01:00
Dave Hickin
e8a9beec07 Remove excess blank lines 2015-08-29 11:00:40 +01:00
Dave Hickin
84304d9b4e Add utility class for parsing NT IDs 2015-08-21 14:46:26 +01:00
Dave Hickin
b62cb22818 Added NTNDArrayAttribute
Added wrapper for NTAttributes extended as required by NTNDArray.
2015-08-21 07:45:16 +01:00
Dave Hickin
1e6fb17e92 Add NTURI 2015-08-21 06:47:52 +01:00
Dave Hickin
bc2622f70a Add getColumnNames() to NTTable 2015-08-21 06:46:17 +01:00
Dave Hickin
da81f8db83 Add NTHistogram 2015-08-21 03:55:35 +01:00
Dave Hickin
7c58eae97e Add NTContinuum 2015-08-21 03:55:04 +01:00
Dave Hickin
0b3e1c9fd1 Add isValid() and overloads of is_a() and isCompatible()
Add convenience methods is_a(PVStructure). Add overloads of isCompatible
taking a Structure since implementation of isCompatible(PVStructure)
only uses introspection interface. Implement for NTScalar and
NTScalarArray. Add isValid() function that checks NT is valid through data
interface.
2015-08-21 01:15:40 +01:00
Dave Hickin
59afc5335a Fixed unit NTTable test failure 2015-08-20 18:32:18 +01:00
Dave Hickin
000dde0454 Make attach* functions return bool in multi-channel types
The attachAlarm and attachTimeStamps() return true if successful, false
otherwise in other classes. In NTMultiChannel and NTScalarMultiChannel
they returned void. Bring multi-channel behaviour in line.
2015-08-20 17:23:59 +01:00
Dave Hickin
5076057d8d Make isConnected optional field of multi-channel types
A boolean[] isConnected field was included in all constructed
NTMultiChannels and NTScalarMultiChannels. However this is neither a
required nor optional field of these types. Applications use this
though, (specifically pvaClient) so treat as if optional field. Add
addIsConnected() function to builders and retain isConnected() in
wrapper classes. Leave isConnected field in structures until clients
updated.
2015-08-20 17:19:18 +01:00
Dave Hickin
fd60732a8c Rename add() addColumn() in NTTable
Function for adding columns to table (i.e. to value subfield) was
add(ScalarType). However add(Field) adds extra field to top-level
structure. Rename former to avoid confusion and as more meaningful
name. Update unit tests.
2015-08-20 17:07:27 +01:00
Dave Hickin
002a465705 Clear up confusion between labels and column names
The labels are strings used in the displaying of the columns of a table
e.g. column titles or headers. The column names of an NTTable are the
names of the fields containing the column data. There was some confusion
in the implementation between these. Rename the labels variable
columnNames and correct the comments. Tables were created with labels
equal to the column names. Retain this behaviour for backwards
compatibility, as a sensible default and to always create a valid table,
but document this.
2015-08-20 17:03:27 +01:00
Dave Hickin
5ddcc70993 Add getName() and getTags() functions to NTAttribute 2015-08-20 16:16:34 +01:00