Commit ef9dbc21 authored by Vitaly Lipatov's avatar Vitaly Lipatov

Configuration: cleanup code

parent 08a0a0f9
......@@ -227,7 +227,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
try
{
if( unixml.getProp(cnode,"idfromfile").empty() || unixml.getIntProp(cnode,"idfromfile")==0 )
if( unixml.getIntProp(cnode,"idfromfile") == 0 )
oind = new ObjectIndex_XML(unixml); //(fileConfName);
else
oind = new ObjectIndex_idXML(unixml); //(fileConfName);
......@@ -247,7 +247,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
mi = new DefaultMessageInterface();
else
{
if( unixml.getProp(cnode,"idfromfile").empty() || unixml.getIntProp(cnode,"idfromfile")==0 )
if( unixml.getIntProp(cnode,"idfromfile") == 0 )
mi = new MessageInterface_XML(unixml); // (fileConfName);
else
mi = new MessageInterface_idXML(unixml); // (fileConfName);
......@@ -279,15 +279,15 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
// localIOR
// localIOR = false; // ??. initParameters()
string lior( getArgParam("--localIOR") );
if( !lior.empty() )
localIOR = uni_atoi(lior);
int lior = getArgInt("--localIOR");
if( lior )
localIOR = lior;
// transientIOR
// transientIOR = false; // ??. initParameters()
string tior( getArgParam("--transientIOR") );
if( !tior.empty() )
transientIOR = uni_atoi(tior);
int tior = getArgInt("--transientIOR");
if( tior )
transientIOR = tior;
if( imagesDir[0]!='/' && imagesDir[0]!='.' )
imagesDir = dataDir + imagesDir + "/";
......
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