Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
alta
alta
Commits
c85f0997
Commit
c85f0997
authored
Apr 09, 2015
by
Ludovic Courtès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin-manager: Use the new 'header' class.
parent
4a3f1801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
30 deletions
+7
-30
sources/core/plugins_manager.cpp
sources/core/plugins_manager.cpp
+7
-30
No files found.
sources/core/plugins_manager.cpp
View file @
c85f0997
...
...
@@ -192,38 +192,15 @@ function* plugins_manager::get_function(const std::string& filename)
// Parse the header for the function command line and the dimension
// of the function
while
(
line
!=
"#ALTA HEADER END"
)
{
std
::
getline
(
file
,
line
)
;
std
::
stringstream
linestream
(
line
)
;
linestream
.
ignore
(
1
)
;
std
::
string
comment
;
linestream
>>
comment
;
header
header
(
file
);
if
(
comment
==
std
::
string
(
"DIM"
))
{
linestream
>>
nX
>>
nY
;
}
else
if
(
comment
==
std
::
string
(
"PARAM_IN"
))
{
std
::
string
name
;
linestream
>>
name
;
std
::
cout
<<
"<<DEBUG>> parsed input parametrization: "
<<
name
<<
std
::
endl
;
param_in
=
params
::
parse_input
(
name
);
}
else
if
(
comment
==
std
::
string
(
"PARAM_OUT"
))
{
std
::
string
name
;
linestream
>>
name
;
param_out
=
params
::
parse_output
(
name
);
}
else
if
(
comment
==
std
::
string
(
"CMD"
))
{
args
=
arguments
::
create_arguments
(
line
.
substr
(
4
,
std
::
string
::
npos
));
}
{
std
::
stringstream
linestream
(
header
[
"DIM"
]);
linestream
>>
nX
>>
nY
;
}
param_in
=
params
::
parse_input
(
header
[
"PARAM_IN"
]);
param_out
=
params
::
parse_output
(
header
[
"PARAM_OUT"
]);
args
=
arguments
::
create_arguments
(
header
[
"CMD"
]);
// Create the function from the command line
function
*
f
=
get_function
(
args
);
...
...
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