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
8718dd6b
Commit
8718dd6b
authored
Mar 09, 2018
by
Jean-Luc Pons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to start empty device
parent
f58c5db9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
AttributeCombiner.cpp
AttributeCombiner.cpp
+8
-11
No files found.
AttributeCombiner.cpp
View file @
8718dd6b
...
...
@@ -158,12 +158,7 @@ void AttributeCombiner::init_device()
// Create BLM group
deviceGroup
=
new
Tango
::
Group
(
"DEVGROUP"
);
if
(
deviceList
.
size
()
==
0
)
{
cerr
<<
"ERROR: DeviceList device property not defined"
<<
endl
;
exit
(
0
);
}
errorStack
.
clear
();
for
(
int
i
=
0
;
i
<
(
int
)
deviceList
.
size
();
i
++
)
{
// Populate error vector
...
...
@@ -453,11 +448,13 @@ void AttributeCombiner::add_dynamic_attributes()
}
// States attribute
vector
<
string
>
stateName
;
stateName
.
push_back
(
"State"
);
DynSpectrumAttribute
*
stateAtt
=
new
DynSpectrumAttribute
(
"States"
,
Tango
::
DEV_STATE
,
deviceList
.
size
(),
Tango
::
READ
,
false
);
add_attribute
(
stateAtt
);
attMap
.
add
(
"States"
,
stateName
,
false
,
Tango
::
DEV_STATE
,
Tango
::
READ
,
false
,
"None"
,
false
);
if
(
deviceList
.
size
()
>
0
)
{
vector
<
string
>
stateName
;
stateName
.
push_back
(
"State"
);
DynSpectrumAttribute
*
stateAtt
=
new
DynSpectrumAttribute
(
"States"
,
Tango
::
DEV_STATE
,
deviceList
.
size
(),
Tango
::
READ
,
false
);
add_attribute
(
stateAtt
);
attMap
.
add
(
"States"
,
stateName
,
false
,
Tango
::
DEV_STATE
,
Tango
::
READ
,
false
,
"None"
,
false
);
}
/*----- PROTECTED REGION END -----*/
// AttributeCombiner::add_dynamic_attributes
}
...
...
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