Unnamed
public text v1 · immutable std::ifstream instream;
try
{
instream.open(image_iter.Get()->GetText().c_str());
if (!instream.is_open())
{
// File wasn't able to be opened.
#ifdef DEBUG
mLogManager.logError("ImageManager: Could not open " + image_iter.Get()->GetText() + " for reading, abort.");
#endif
throw(Exception::FileOperationFailedException(image_iter.Get()->GetText().c_str()));
}
}
catch (std::exception &e)
{
mLogManager.logError(e.what());
std::cout << e.what();
}