Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AttributeCombiner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Accelerators
Generic
AttributeCombiner
Commits
8d637cf1
Commit
8d637cf1
authored
Nov 26, 2019
by
Jean-Luc Pons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug for length attribute
parent
84a5901b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
AttributeCombiner.cpp
AttributeCombiner.cpp
+34
-2
No files found.
AttributeCombiner.cpp
View file @
8d637cf1
...
...
@@ -1213,8 +1213,40 @@ void AttributeCombiner::add_dynamic_commands()
if
(
isNumber
(
item
->
lengthAttName
))
length
=
atol
(
item
->
lengthAttName
.
c_str
());
else
self
->
read_attribute
(
item
->
lengthAttName
)
>>
length
;
else
{
Tango
::
DeviceAttribute
da
=
self
->
read_attribute
(
item
->
lengthAttName
);
switch
(
da
.
get_type
()
)
{
case
Tango
::
DEV_SHORT
:
{
Tango
::
DevShort
val
;
da
>>
val
;
length
=
(
Tango
::
DevLong
)
val
;
}
break
;
case
Tango
::
DEV_USHORT
:
{
Tango
::
DevUShort
val
;
da
>>
val
;
length
=
(
Tango
::
DevLong
)
val
;
}
break
;
case
Tango
::
DEV_LONG
:
{
da
>>
length
;
}
break
;
case
Tango
::
DEV_ULONG
:
{
Tango
::
DevULong
val
;
da
>>
val
;
length
=
(
Tango
::
DevLong
)
val
;
}
break
;
default:
Tango
::
Except
::
throw_exception
(
(
const
char
*
)
"AttributeCombiner::error_read"
,
(
const
char
*
)
"Type unsupported for attLength"
,
(
const
char
*
)
"AttributeCombiner::read_dynspec_attributes"
);
}
}
int
blockSize
=
length
*
nbAtt
;
Tango
::
DevDouble
*
result
=
new
Tango
::
DevDouble
[
length
*
size
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment