Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
d71df77e
Commit
d71df77e
authored
Jun 03, 2011
by
Praetorius, Simon
Browse files
Initfile parser - small changes
parent
9cb97640
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Initfile.h
View file @
d71df77e
...
...
@@ -122,7 +122,8 @@ namespace AMDiS {
template
<
typename
T
>
inline
void
convert
(
const
std
::
string
valStr
,
T
&
value
,
typename
boost
::
enable_if
<
boost
::
is_pod
<
T
>
>::
type
*
p
=
NULL
,
typename
boost
::
disable_if
<
boost
::
is_enum
<
T
>
>::
type
*
p2
=
NULL
)
{
typename
boost
::
disable_if
<
boost
::
is_enum
<
T
>
>::
type
*
p2
=
NULL
)
{
using
boost
::
lexical_cast
;
try
{
...
...
@@ -134,7 +135,8 @@ namespace AMDiS {
template
<
typename
T
>
inline
void
convert
(
const
std
::
string
valStr
,
T
&
value
,
typename
boost
::
enable_if
<
boost
::
is_enum
<
T
>
>::
type
*
p
=
NULL
)
{
typename
boost
::
enable_if
<
boost
::
is_enum
<
T
>
>::
type
*
p
=
NULL
)
{
unsigned
int
swap
=
0
;
try
{
...
...
@@ -243,6 +245,10 @@ struct Initfile : public std::map< std::string, std::string > {
* @param in: filename string
*/
static
void
init
(
std
::
string
in
);
static
void
init
(
int
print
,
string
filename
,
const
char
*
flags
=
NULL
)
{
WARNING
(
"Parameters::init(int,std::string,const char*) is depreciated. Use Parameters::init(std::string) instead!
\n
"
);
init
(
filename
);
}
/** Static get routine for getting parameter-values from init-file initialized in init()-method.
* Cast the value to the desired type using std::stringstream.
...
...
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