Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Y
YAT4TANGO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Libraries
YAT4TANGO
Merge requests
!6
[DeviceProxyHelper] add get_property method
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
[DeviceProxyHelper] add get_property method
feature/deviceproxyhelper-add-get_property_method
into
main
Overview
2
Commits
1
Pipelines
0
Changes
1
Open
[DeviceProxyHelper] add get_property method
Florent LANGLOIS
requested to merge
feature/deviceproxyhelper-add-get_property_method
into
main
5 months ago
Overview
2
Commits
1
Pipelines
0
Changes
1
this was not tested
0
0
Merge request reports
Compare
main
main (HEAD)
and
latest version
latest version
bd15cd3b
1 commit,
5 months ago
1 file
+
26
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
include/yat4tango/DeviceProxyHelper.h
+
26
−
0
View file @ 6120e4f0
Edit in single-file editor
Open in Web IDE
Show full file
@@ -1608,6 +1608,32 @@ public:
@@ -1608,6 +1608,32 @@ public:
}
}
}
}
//---------------------------------------------------------------------------
// DeviceProxyHelper::get_property
//---------------------------------------------------------------------------
template
<
typename
C
>
C
get_property
(
const
std
::
string
&
property_name
,
bool
throw_exception_on_error
=
true
)
{
try
{
try
{
Tango
::
DbData
dev_prop
;
dev_prop
.
push_back
(
Tango
::
DbDatum
(
property_name
));
tango_proxy
()
->
get_property
(
dev_prop
);
C
prop_val
;
dev_prop
[
0
]
>>
prop_val
;
return
prop_val
;
}
_HANDLE_TANGO_DEVICE_EXCEPTION
(
"get_property"
,
"yat4tango::DeviceProxyHelper::get_property"
);
}
catch
(...)
{
if
(
throw_exception_on_error
)
throw
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// AttributeHelper::restore_properties_snapshot
// AttributeHelper::restore_properties_snapshot
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Loading