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
Dave Hickin
b40eca79cf
Add NTAttribute including builder
2015-08-20 08:43:27 +01:00
Dave Hickin
f6f5539f7b
Add NTAggregate including builder and unit tests
2015-08-20 08:41:45 +01:00
Dave Hickin
0d66034092
Add NTUnion including builder and unit tests
2015-08-20 08:01:29 +01:00
Dave Hickin
1de2666993
Add NTEnum including builder and unit tests
2015-08-20 07:59:29 +01:00
Dave Hickin
7d0b6d86ea
Add NTMatrix including builder and unit tests
2015-08-20 07:56:20 +01:00
Bruno Martins
b52fc4fce8
Fix extra fields not being created
...
FieldBuilder::createStructure() was being called too early inside NTTableBuilder::createStructure(), preventing extra fields from being properly created.
2015-08-12 22:46:46 -04:00
Dave Hickin
b1143fea9e
Make #endif comments match #ifdef in inclusion guards
2015-08-06 14:06:14 +01:00
Dave Hickin
efa9dff1d4
Change references to NTTableBuilder to NTScalarBuilder in NTScalar
2015-08-06 14:04:47 +01:00
Dave Hickin
3b9f8a26c0
Include ntscalarMultiChannel.h in nt.h
2015-08-06 13:57:11 +01:00
Dave Hickin
5381a0c294
Add NTScalarMultiChannel
2015-08-04 21:30:13 +01:00
Andrew Johnson
36b8e60152
Fix module name in sources LICENSE reference
2015-08-03 16:47:28 -05:00
Andrew Johnson
ec02b9f7ee
Cleanup: Remove extraneous / from SRC
2015-06-08 17:47:14 -05:00
dhickin
efff7f5041
Improve thread-safety of NTNDArray.
2015-06-08 10:34:10 +01:00
dhickin
8c292eeebc
Reorder optional fields to consistent order to match new NT spec.
2015-05-11 14:02:18 +01:00
dhickin
25e8c65bb0
Reorder declarations/definitions.
2015-04-22 14:55:40 +01:00
dhickin
f47b059a5b
Add definition of missing uniqueId() function.
2015-04-22 14:47:34 +01:00
Marty Kraimer
acd986c19d
work on doxygen
2014-12-15 08:31:41 -05:00
Matej Sekoranja
a25a89fadc
win32 build, all test pass
2014-11-10 21:52:10 +01:00
Matej Sekoranja
49312d62d5
added epicsShared export declarations
2014-11-10 10:24:10 +01:00
Matej Sekoranja
42fb15211a
NTUtils added, is_a for new URI scheme
2014-11-10 10:04:32 +01:00