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
a7334494
Commit
a7334494
authored
10 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #7336: Add a toString() function to pyparameterset, allowing export to a string
parent
5840d266
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
LCS/pyparameterset/src/pyparameterset.cc
+5
-0
5 additions, 0 deletions
LCS/pyparameterset/src/pyparameterset.cc
with
5 additions
and
0 deletions
LCS/pyparameterset/src/pyparameterset.cc
+
5
−
0
View file @
a7334494
...
@@ -87,6 +87,9 @@ namespace LOFAR {
...
@@ -87,6 +87,9 @@ namespace LOFAR {
void
adoptCollection
(
const
PyParameterSet
&
parset
,
const
string
&
prefix
)
void
adoptCollection
(
const
PyParameterSet
&
parset
,
const
string
&
prefix
)
{
return
ParameterSet
::
adoptCollection
(
parset
,
prefix
);
}
{
return
ParameterSet
::
adoptCollection
(
parset
,
prefix
);
}
string
toString
()
const
{
string
buffer
;
writeBuffer
(
buffer
);
return
buffer
;
}
PyParameterValue
get
(
const
string
&
key
)
const
PyParameterValue
get
(
const
string
&
key
)
const
{
return
ParameterSet
::
get
(
key
);
}
{
return
ParameterSet
::
get
(
key
);
}
...
@@ -252,6 +255,8 @@ namespace LOFAR {
...
@@ -252,6 +255,8 @@ namespace LOFAR {
(
boost
::
python
::
arg
(
"filename"
),
(
boost
::
python
::
arg
(
"filename"
),
boost
::
python
::
arg
(
"append"
)
=
false
),
boost
::
python
::
arg
(
"append"
)
=
false
),
"Write the parameterset into a parset file with the given name."
)
"Write the parameterset into a parset file with the given name."
)
.
def
(
"toString"
,
&
PyParameterSet
::
toString
,
"Return the full parset as a string"
)
.
def
(
"add"
,
fadd
,
.
def
(
"add"
,
fadd
,
(
boost
::
python
::
arg
(
"key"
),
(
boost
::
python
::
arg
(
"key"
),
boost
::
python
::
arg
(
"value"
)),
boost
::
python
::
arg
(
"value"
)),
...
...
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