imgtools/romtools/readimage/src/image_handler.cpp
changeset 6 787612182dd0
parent 2 39c28ec933dd
equal deleted inserted replaced
5:301c3edbdaa1 6:787612182dd0
   390 	}
   390 	}
   391 	else
   391 	else
   392 	{
   392 	{
   393 		if(iInputFileName.empty())
   393 		if(iInputFileName.empty())
   394 		{
   394 		{
   395 			throw SisUtilsException(const_cast<char *>("Usage Error"),
   395 			throw SisUtilsException("Usage Error","No SIS file passed");
   396 				const_cast<char *>("No SIS file passed"));
       
   397 		}
   396 		}
   398 
   397 
   399 		iSisUtils = new Sis2Iby((char*)iInputFileName.c_str());
   398 		iSisUtils = new Sis2Iby((char*)iInputFileName.c_str());
   400 
   399 
   401 		if(iSisUtils)
   400 		if(iSisUtils)
   408 			iSisUtils->ProcessSisFile();
   407 			iSisUtils->ProcessSisFile();
   409 			iSisUtils->GenerateOutput();
   408 			iSisUtils->GenerateOutput();
   410 		}
   409 		}
   411 		else
   410 		else
   412 		{
   411 		{
   413 			throw SisUtilsException(const_cast<char *>("Error:"),
   412 			throw SisUtilsException("Error:","Cannot create Sis2Iby object");
   414 				const_cast<char *>("Cannot create Sis2Iby object"));
       
   415 		}
   413 		}
   416 	}
   414 	}
   417 }
   415 }
   418 
   416 
   419 void ImageHandler::PrintVersion()
   417 void ImageHandler::PrintVersion()