Revision 4126aaa3
Added by David Sorber almost 8 years ago
| software/photo_compress_archiver/PhotoCompressArchiver.cc | ||
|---|---|---|
|
<< " files:\n" << ENDC << std::endl;
|
||
|
|
||
|
WorkUnit* work_unit = nullptr;
|
||
|
for (uint32_t idx = 0; idx < m_errors.size(); ++idx)
|
||
|
uint32_t size = m_errors.size();
|
||
|
for (uint32_t idx = 0; idx < size; ++idx)
|
||
|
{
|
||
|
work_unit = m_errors.pop_front();
|
||
|
std::cout << " " << work_unit->m_path << std::endl;
|
||
|
std::cout << " " << work_unit->m_path.string() << std::endl;
|
||
|
delete work_unit;
|
||
|
}
|
||
|
std::cout << std::endl;
|
||
| ... | ... | |
|
WRKR_OUT_ERR("the input file \"" << work_unit->m_path
|
||
|
<< "\" does not appear to be a valid "
|
||
|
"packjpg (.pjg) file even though its filename "
|
||
|
"suggests it is!\n")
|
||
|
"suggests it is!")
|
||
|
m_errors.push_back(work_unit);
|
||
|
continue;
|
||
|
}
|
||
| ... | ... | |
|
WRKR_OUT_ERR("the input file \"" << work_unit->m_path
|
||
|
<< "\" does not appear to be a valid "
|
||
|
"JPEG (.jpg) file even though its filename "
|
||
|
"suggests it is!\n")
|
||
|
"suggests it is!")
|
||
|
m_errors.push_back(work_unit);
|
||
|
continue;
|
||
|
}
|
||
| ... | ... | |
|
WRKR_OUT_ERR("An error occurred during the "
|
||
|
<< (m_decompress ? "decompression" : "compression")
|
||
|
<< " operation on " << work_unit->m_path
|
||
|
<< ": " << message << "\n")
|
||
|
<< ": " << message)
|
||
|
m_errors.push_back(work_unit);
|
||
|
continue;
|
||
|
}
|
||
| software/photo_compress_archiver/PhotoCompressArchiver.hh | ||
|---|---|---|
|
const std::string YELLOW("\033[33m");
|
||
|
const std::string PURPLE("\033[35m");
|
||
|
|
||
|
const std::string version("v0.3.2");
|
||
|
const std::string version("v0.3.3");
|
||
|
|
||
|
const boost::regex JPEG_REGEX("^.+\\.(jpg)|(jpeg)$", boost::regex::icase);
|
||
|
const boost::regex PJG_REGEX("^.+\\.pjg$", boost::regex::icase);
|
||
Additional minor output formatting fixes.