tahamajs's picture
download
raw
502 Bytes
#ifndef COUNTING_PROCESSOR_HPP
#define COUNTING_PROCESSOR_HPP
#include <string>
#include <unordered_map>
#include <vector>
#include "log.hpp"
class CountingProcessor {
public:
CountingProcessor(std::string file_path, std::vector<std::string> genres, Log log);
void run();
private:
const std::string file_path_;
std::unordered_map<std::string, int> genres_count_;
bool is_done_ = false;
Log log_;
void countGenres();
void sendResultToGenresProcesses();
};
#endif

Xet Storage Details

Size:
502 Bytes
·
Xet hash:
3e83948fddd946debe5573cfb3a1c9e0b3150e8d3f4f598613a72cb5923f1618

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.