imgtools/imglib/filesystem/source/filesysteminterface.cpp
changeset 6 787612182dd0
parent 2 39c28ec933dd
equal deleted inserted replaced
5:301c3edbdaa1 6:787612182dd0
    60 	{
    60 	{
    61 		MessageHandler::StartLogging (aLogFileName);
    61 		MessageHandler::StartLogging (aLogFileName);
    62 		iOutputStream.open(aImageFileName,ios::out|ios::binary);
    62 		iOutputStream.open(aImageFileName,ios::out|ios::binary);
    63 		if(iOutputStream.fail() == true )
    63 		if(iOutputStream.fail() == true )
    64 		{
    64 		{
    65 			throw ErrorHandler(FILEOPENERROR,
    65 			throw ErrorHandler(FILEOPENERROR,aImageFileName,__FILE__,__LINE__);
    66 				const_cast<char *>(aImageFileName),
       
    67 				const_cast<char *>(__FILE__), __LINE__);
       
    68 		}
    66 		}
    69 		switch(aFileSystem)
    67 		switch(aFileSystem)
    70 		{
    68 		{
    71 			case EFAT16:
    69 			case EFAT16:
    72 				iFileSystem = new CFat16FileSystem;
    70 				iFileSystem = new CFat16FileSystem;