dhickin
be95a62965
Merge pull request #31 from mdavidsaver/deprecatemonitiorplugin
...
Deprecate monitorPlugin.h
2016-03-15 14:46:53 +00:00
Michael Davidsaver
139217914d
deprecate monitorPlugin.h
2016-02-26 12:17:12 -05:00
Michael Davidsaver
a8ba831f5e
fix freeze() of shared_vector<void>
2016-02-26 12:13:23 -05:00
Michael Davidsaver
4f499aed01
remove PVField::notImplemented
...
An unused waste of space in every instance...
2016-02-26 12:13:23 -05:00
Michael Davidsaver
a90405c25a
shared_vector update doc
2016-02-26 12:13:23 -05:00
Michael Davidsaver
b02f771146
shared_vector: vtype lost when freeze/thaw untyped
...
The vtype code is not copied for freeze/thaw
of shared_vector<void> to/from shared_vector<const void>.
2016-02-26 12:13:23 -05: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
Dave Hickin
336a8b3bc2
Fix win32 deserialization test fail
2016-02-18 18:56:04 +00:00
Dave Hickin
faecea39c8
Merge branch 'master' of github.com:msekoranja/pvDataCPP
2016-02-18 15:35:36 +00:00
Michael Davidsaver
d4292d81f2
BitSet: truncation in or_and
...
For "this |= set1 & set2" the result size
should be "max(this, min(set1, set2))" while
at present it is "min(set1, set2)" resulting
in truncation if the LHS is longer than the
RHS.
2016-02-17 10:17:21 -05:00
Matej Sekoranja
65ff7ab1c3
fixed bitSet serialization
2016-02-12 19:35:44 +01:00
Dave Hickin
35fd991fdc
Improve directSerialize/Deserialize() documentation
...
Add explanation of returned values and more description of the methods.
2016-02-11 10:51:43 +00:00
Michael Davidsaver
57e1acba79
add missing epicsShareFunc
2016-02-10 11:22:07 -05:00
Michael Davidsaver
620d351946
current_function.h not executable
2016-02-10 14:43:58 +00:00
Michael Davidsaver
de3c2656ef
INC += pv/
2016-02-10 14:40:29 +00:00
Michael Davidsaver
3b2e9b2485
move all headers to pv/
2016-02-10 14:40:29 +00:00
Michael Davidsaver
448f606054
update comments
2016-02-09 19:17:39 -05:00
Michael Davidsaver
e35c6f29fb
add deserializeFrom* helpers
2016-02-05 18:34:16 -05:00
Michael Davidsaver
85a1a48b00
add serializeToVector
2016-01-27 11:25:09 -05:00
Michael Davidsaver
93c7a05dac
remove redundant getSubField
2016-01-25 13:15:15 -05:00
Michael Davidsaver
a34c38c9b9
getSubField -> getSubFieldT to avoid potential NULL de-ref.
2016-01-25 12:12:06 -05:00
Michael Davidsaver
3100b77a1a
Merge remote-tracking branch 'origin/master'
...
* origin/master:
missing buffer capacity check in PVUnion::serialize
byteBuffer throw invalid_argument when ctor w/ NULL
revert incorrect doc string
byteBuffer check for alloc failure and const
new Thread::Config
2016-01-25 12:05:32 -05:00
Michael Davidsaver
c8429069a3
SONAME in src/Makefile
2016-01-25 11:49:05 -05:00
Michael Davidsaver
01172217dc
Merge remote-tracking branch 'md/threadconfig'
...
* md/threadconfig:
new Thread::Config
2015-12-29 18:34:18 -05:00
Michael Davidsaver
14b0e409f2
missing buffer capacity check in PVUnion::serialize
...
Allows a buffer overflow in PVUnionArray::serialize().
2015-12-28 18:16:01 -05:00
Michael Davidsaver
433676226c
byteBuffer throw invalid_argument when ctor w/ NULL
2015-12-17 16:45:56 -05:00
Michael Davidsaver
f0c88234a0
revert incorrect doc string
2015-12-15 10:26:31 -05:00
Michael Davidsaver
393d711e5f
byteBuffer check for alloc failure and const
...
Ensure that bad_alloc is thrown if allocations fail, presently unchecked.
Also add const qualifier where possible.
2015-12-14 13:25:42 -05:00
Michael Davidsaver
cb24bd9c2c
Merge remote-tracking branch 'md/validatefieldnames'
...
* md/validatefieldnames:
fix testCreateRequest
field names may not begin with a digit
fail zero length field names
validate field names
2015-11-30 20:55:16 -05:00
Michael Davidsaver
abc5c5a374
new Thread::Config
2015-11-23 15:21:21 -05:00
Michael Davidsaver
54c94f181a
add global namespace so these macros work anywhere
2015-11-23 15:21:21 -05:00
Michael Davidsaver
f4a00f2b0f
field names may not begin with a digit
...
Enforce C identifer syntax
[A-Za-z_][A-Za-z0-9_]*
2015-11-23 14:31:27 -05:00
Dave Hickin
9d877d764f
Doxgen fixes and enhancements
...
Change ¶m to @param. Add missing parameter.
Add more doxygen comments in SerializeHelper.
2015-10-15 07:12:42 +01:00
Dave Hickin
f5df29cf34
Doxygen: remove @code when code block not wanted
...
@code produces a separate code block, rather than just displaying
contents as code.
Mostly replaced use with @c tag when block not wanted.
2015-10-15 06:50:26 +01:00
Dave Hickin
8008823ea5
Fix doxygen warnings
2015-10-14 23:01:28 +01: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
dhickin
973fbeeba5
Merge pull request #8 from dhickin/move_getSubFieldT_def_from_class_body
...
Move getSubFieldT definitions out of class body
2015-09-01 17:03:14 +01:00
Dave Hickin
ddebd494c6
Remove deprecated PVStructure::get*Field Functions
...
Remove the deprecated functions such as getIntField in PVStructure,
whose usage has been replaced by that of the template getSubField
function and which are now no longer called anywhere.
2015-07-28 17:45:26 +01:00
Dave Hickin
1731a0daf6
USAGE_DEPRECATED macro used for getScalarArrayField
2015-07-24 16:56:49 +01:00
Dave Hickin
5834efb709
Remove calls of deprecated getScalarArrayField
2015-07-24 11:21:58 +01:00
Dave Hickin
52bc6d060d
Move getSubFieldT definitions out of class body
...
Move definitions of 2 getSubFieldT overloads:
shared_ptr<PVT> PVStructure::getSubFieldT(const char *name) const
shared_ptr<PVT> PVStructure::getSubFieldT(size_t fieldOffset) const
out of class body so not implicitly inlined.
2015-07-15 11:34:44 +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
9827caa3e3
Make overloads of getSubField and getSubFieldT match
...
For each getSubField overload a throwing getSubFieldT has been added and
vice versa. These have been documented in doxygen and in the module
documentation.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 12:41:47 +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
1dba611b8e
Improve exception messages when getting PVStructure subfield
...
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 11:47:21 +01:00
Dave Hickin
97cbea6f4d
Implement getSubField functions without using exceptions
...
Implementation of getSubField (and getScalarArrayField) introduced in
the getAs pull request throws an exception then catches it to return a
null pointer. Implement without throwing.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-13 02:16:08 +01:00
Dave Hickin
8418303ce2
Fix bug in new PVStructure::getAs function
...
Fix seg fault when getAs is called with a string of the form x.y (or
x_1. ... x_n.y) where x or (x1. ... .x_i) is not a structure field.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk >
2015-07-09 13:21:45 +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