Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
11a510ec
Commit
11a510ec
authored
18 years ago
by
Ruud Overeem
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 796
PVSS related enhancements.
parent
cfce4812
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
+5
-2
5 additions, 2 deletions
MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
with
5 additions
and
2 deletions
MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
+
5
−
2
View file @
11a510ec
...
...
@@ -586,7 +586,7 @@ void MACScheduler::_addActiveObservation(const Observation& newObs)
// update own admin and PVSS datapoint
itsObservations
.
push_back
(
newObs
);
itsPVSSObsList
.
push_back
(
new
GCFPVString
(
newObs
.
name
));
itsPVSSObsList
.
push_back
(
new
GCFPVString
(
formatString
(
"Observation%d"
,
newObs
.
treeID
)
));
itsPropertySet
->
setValue
(
PN_MS_ACTIVE_OBSERVATIONS
,
GCFPVDynArr
(
LPT_STRING
,
itsPVSSObsList
));
LOG_DEBUG_STR
(
"Added observation "
<<
newObs
.
name
<<
" to active observation-list"
);
...
...
@@ -600,12 +600,14 @@ void MACScheduler::_addActiveObservation(const Observation& newObs)
void
MACScheduler
::
_removeActiveObservation
(
const
string
&
name
)
{
// search observation.
OTDB
::
treeIDType
treeID
;
vector
<
Observation
>::
iterator
end
=
itsObservations
.
end
();
vector
<
Observation
>::
iterator
iter
=
itsObservations
.
begin
();
bool
found
(
false
);
while
(
!
found
&&
(
iter
!=
end
))
{
if
(
iter
->
name
==
name
)
{
found
=
true
;
treeID
=
iter
->
treeID
;
itsObservations
.
erase
(
iter
);
LOG_DEBUG_STR
(
"Removed observation "
<<
name
<<
" from active observationList"
);
}
...
...
@@ -616,10 +618,11 @@ void MACScheduler::_removeActiveObservation(const string& name)
return
;
}
string
obsName
(
formatString
(
"Observation%d"
,
treeID
));
GCFPValueArray
::
iterator
pEnd
=
itsPVSSObsList
.
end
();
GCFPValueArray
::
iterator
pIter
=
itsPVSSObsList
.
begin
();
while
(
pIter
!=
pEnd
)
{
if
((
static_cast
<
GCFPVString
*>
(
*
pIter
))
->
getValue
()
==
n
ame
)
{
if
((
static_cast
<
GCFPVString
*>
(
*
pIter
))
->
getValue
()
==
obsN
ame
)
{
delete
*
pIter
;
itsPVSSObsList
.
erase
(
pIter
);
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment