Skip to content
GitLab
Explore
Sign in
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
4dbddc48
Commit
4dbddc48
authored
6 years ago
by
Auke Klazema
Browse files
Options
Downloads
Patches
Plain Diff
SW-596
: Fix a scope issue
parent
9e009b3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
+10
-5
10 additions, 5 deletions
MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
with
10 additions
and
5 deletions
MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
+
10
−
5
View file @
4dbddc48
...
@@ -252,9 +252,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
...
@@ -252,9 +252,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
// Try to connect to the SAS database.
// Try to connect to the SAS database.
ParameterSet
*
pParamSet
=
globalParameterSet
();
ParameterSet
*
pParamSet
=
globalParameterSet
();
std
::
string
username
;
try
try
{
{
string
username
=
pParamSet
->
getString
(
"OTDBusername"
);
username
=
pParamSet
->
getString
(
"OTDBusername"
);
}
}
catch
(
LOFAR
::
APSException
&
ex
)
catch
(
LOFAR
::
APSException
&
ex
)
{
{
...
@@ -263,9 +264,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
...
@@ -263,9 +264,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
<<
ex
.
what
());
<<
ex
.
what
());
throw
(
ex
);
throw
(
ex
);
}
}
std
::
string
DBname
;
try
try
{
{
string
DBname
=
pParamSet
->
getString
(
"OTDBdatabasename"
);
DBname
=
pParamSet
->
getString
(
"OTDBdatabasename"
);
}
}
catch
(
LOFAR
::
APSException
&
ex
)
catch
(
LOFAR
::
APSException
&
ex
)
{
{
...
@@ -274,9 +276,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
...
@@ -274,9 +276,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
<<
ex
.
what
());
<<
ex
.
what
());
throw
(
ex
);
throw
(
ex
);
}
}
std
::
string
password
;
try
try
{
{
string
password
=
pParamSet
->
getString
(
"OTDBpassword"
);
password
=
pParamSet
->
getString
(
"OTDBpassword"
);
}
}
catch
(
LOFAR
::
APSException
&
ex
)
catch
(
LOFAR
::
APSException
&
ex
)
{
{
...
@@ -285,9 +288,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
...
@@ -285,9 +288,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
<<
ex
.
what
());
<<
ex
.
what
());
throw
(
ex
);
throw
(
ex
);
}
}
std
::
string
hostname
try
try
{
{
string
hostname
=
pParamSet
->
getString
(
"OTDBhostname"
);
hostname
=
pParamSet
->
getString
(
"OTDBhostname"
);
}
}
catch
(
LOFAR
::
APSException
&
ex
)
catch
(
LOFAR
::
APSException
&
ex
)
{
{
...
@@ -296,9 +300,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
...
@@ -296,9 +300,10 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
<<
ex
.
what
());
<<
ex
.
what
());
throw
(
ex
);
throw
(
ex
);
}
}
std
::
string
port
;
try
try
{
{
string
port
=
pParamSet
->
getString
(
"OTDBport"
);
port
=
pParamSet
->
getString
(
"OTDBport"
);
}
}
catch
(
LOFAR
::
APSException
&
ex
)
catch
(
LOFAR
::
APSException
&
ex
)
{
{
...
...
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