Revision a62448d3
Added by David Sorber over 7 years ago
| software/photo_compress_archiver/PhotoCompressArchiver.cc | ||
|---|---|---|
|
m_filter_regex(filter_regex)
|
||
|
{
|
||
|
// This is a somewhat crude way to determining if the filter regex is empty
|
||
|
m_filter_empty = std::string("").compare(filter_regex.str()) == 0;
|
||
|
m_filter_empty = std::string("") == filter_regex.str();
|
||
|
}
|
||
|
|
||
|
PhotoCompressArchiver::~PhotoCompressArchiver()
|
||
|
{}
|
||
|
= default;
|
||
|
|
||
|
int PhotoCompressArchiver::execute()
|
||
|
{
|
||
| software/photo_compress_archiver/PhotoCompressArchiver.hh | ||
|---|---|---|
|
public:
|
||
|
bfs::path m_path;
|
||
|
uint32_t m_file_size;
|
||
|
|
||
|
WorkUnit(const bfs::path& path)
|
||
|
|
||
|
explicit WorkUnit(const bfs::path& path)
|
||
|
: m_path(path),
|
||
|
m_file_size(0)
|
||
|
{
|
||
| software/photo_compress_archiver/ProgressBar.h | ||
|---|---|---|
|
progress(progress)
|
||
|
{ }
|
||
|
|
||
|
~ProgressBar() { }
|
||
|
~ProgressBar() = default;
|
||
|
|
||
|
void update(uint8_t new_progress)
|
||
|
{
|
||
| software/photo_compress_archiver/main.cc | ||
|---|---|---|
|
char* app_name = argv[0];
|
||
|
if (argv[0][0] == '.' && argv[0][1] == '/')
|
||
|
{
|
||
|
char* app_name = &argv[0][2];
|
||
|
app_name = &argv[0][2];
|
||
|
}
|
||
|
|
||
|
header();
|
||
| ... | ... | |
|
{
|
||
|
uint32_t num_cores = std::thread::hardware_concurrency();
|
||
|
uint32_t num_threads = 0;
|
||
|
std::string search_path("");
|
||
|
std::string filter_str("");
|
||
|
std::string search_path;
|
||
|
std::string filter_str;
|
||
|
bpo::variables_map general_opts_vm;
|
||
|
|
||
|
try
|
||
Fixing items suggested by clang-tidy.