Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
70ae473f
Commit
70ae473f
authored
Aug 06, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuration: add getArgInt for get argument value as int type (converted by uni_atoi)
parent
c76b0321
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Configuration.h
include/Configuration.h
+4
-0
Configuration.cc
src/Various/Configuration.cc
+7
-0
No files found.
include/Configuration.h
View file @
70ae473f
...
...
@@ -130,7 +130,11 @@ namespace UniSetTypes
inline
bool
isLocalIOR
(){
return
localIOR
;
}
inline
bool
isTransientIOR
(){
return
transientIOR
;
}
/*! , */
std
::
string
getArgParam
(
const
std
::
string
name
,
const
std
::
string
defval
=
""
);
/*! , , 0 */
int
getArgInt
(
const
std
::
string
name
,
const
std
::
string
defval
=
""
);
xmlNode
*
initDebug
(
DebugStream
&
deb
,
const
std
::
string
&
nodename
);
UniSetTypes
::
ListOfNode
::
const_iterator
listNodesBegin
()
...
...
src/Various/Configuration.cc
View file @
70ae473f
...
...
@@ -405,6 +405,13 @@ string Configuration::getArgParam( const string name, const string defval )
{
return
UniSetTypes
::
getArgParam
(
name
,
_argc
,
_argv
,
defval
);
}
int
Configuration
::
getArgInt
(
const
string
name
,
const
string
defval
)
{
return
UniSetTypes
::
uni_atoi
(
getArgParam
(
name
,
defval
));
}
// -------------------------------------------------------------------------
// ????????????? ????????... (??? ???????????)
// WARNING: ??????? ??????? ?? ?????????????????? ???????? ? ????. ?????!!!
...
...
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