Commit Graph

110 Commits

Author SHA1 Message Date
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
399a39a20a Tell git to ignore build output of unit tests 2015-08-20 17:26:03 +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
dhickin
28186f0e3d Merge pull request #6 from dhickin/add_missing_types
Add normative types
2015-08-20 16:35:53 +01:00
Dave Hickin
fc037cf6dc Add unit tests for NTAttribute 2015-08-20 16:16:58 +01:00
Dave Hickin
5ddcc70993 Add getName() and getTags() functions to NTAttribute 2015-08-20 16:16:34 +01:00
Dave Hickin
dc93316856 Merge branch 'add_missing_types' of github.com:dhickin/normativeTypesCPP into add_missing_types 2015-08-20 09:44:27 +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
Ralph Lange
bef1a86b8b jenkins: fix cut-n-paste issue in doc job 2015-08-18 16:54:42 +02:00
Ralph Lange
8f66d21cca Remove mercurial debris (.hg*) 2015-08-18 16:10:42 +02:00
Ralph Lange
f4b7bdbdf0 jenkins: remove hgweb job; split build and doc jobs; update EPICS Base version 2015-08-18 16:10:11 +02:00
Dave Hickin
5f8922e349 Incremented number of tests in NTTable test plan 2015-08-13 12:46:27 +01:00
Dave Hickin
5b7c6ea4d8 Fixed NTTable units tests for extra fields
After fix for NTTable extra fields not being created was merged, unit
tests failed. Tests were wrong. Test was checking number of fields of
constructed structure against number expected without the extra fields.
Corrected check and added checks for extra fields.
2015-08-13 10:59:15 +01:00
dhickin
08f8b56740 Merge pull request #5 from brunoseivam/patch-1
Fix extra fields not being created
2015-08-13 09:51:02 +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
dhickin
f64329e661 Merge pull request #3 from dhickin/NTScalarMultiChannel
Add NTScalarMultiChannel
2015-08-05 22:13:19 +01:00
Dave Hickin
8b9a8e7050 Add tests for NTScalarMultiChannel 2015-08-04 21:32:34 +01:00
Dave Hickin
5381a0c294 Add NTScalarMultiChannel 2015-08-04 21:30:13 +01:00
Andrew Johnson
2f54b89227 Added .gitignore file 2015-06-16 18:06:08 -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
dhickin
16d8284131 merge branch release/4.0 to default. 2015-04-22 14:42:00 +01:00
Ralph Lange
ef4a9d6b4b jenkins: fix cloudbees script (commands must return 0) 2014-12-19 14:16:57 +01:00
Ralph Lange
8ec19d25f1 jenkins: create and update documentation in only one build configuration 2014-12-19 13:18:23 +01:00
Matej Sekoranja
2d3b415c00 removed bin dbd from upload TAR 2014-12-16 10:43:47 +01:00
Matej Sekoranja
177a048220 added jenkins support 2014-12-15 23:26:01 +01:00
Marty Kraimer
acd986c19d work on doxygen 2014-12-15 08:31:41 -05:00
dhickin
3cb954aefa make local RELEASE.local files take precedence over those in TOP/.. 2014-12-09 13:48:15 +00:00
dhickin
bffeca57a8 Added tag 4.0.2 for changeset e4b8d66cee36 2014-12-05 12:07:35 +00:00
dhickin
e8a04138b0 Added dated version (20141009) for latest html documentation. 4.0.2 2014-12-04 16:05:51 +00:00
dhickin
9f5aec1609 Corrected some spelling and some minor formatting issues. 2014-12-04 15:49:43 +00:00
dhickin
8dadad8101 make "local" *.local files take precedence over those in TOP/.. 2014-12-03 16:55:25 +00:00
dhickin
9cc7c65df6 include CONFIG_SITE.local instead of CONFIG.local at top-level. 2014-12-03 16:10:23 +00:00
Matej Sekoranja
518718357c Added tag 4.0.1 for changeset 1c140dd0e199 2014-11-11 17:03:05 +01:00
Matej Sekoranja
1ae93ddaed merge 4.0.1 2014-11-11 17:02:58 +01:00
Matej Sekoranja
99bf23e8fa fixed Makefile for ntutils test 2014-11-11 17:02:33 +01:00