Commit 70ae473f authored by Vitaly Lipatov's avatar Vitaly Lipatov

Configuration: add getArgInt for get argument value as int type (converted by uni_atoi)

parent c76b0321
......@@ -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()
......
......@@ -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: ??????? ??????? ?? ?????????????????? ???????? ? ????. ?????!!!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment