fpnt::Dispatcher class

Constructors, destructors, conversion operators

Dispatcher() deleted
Dispatcher(const nlohmann::json config, std::set<std::string> extensions = default_extensions())

Public functions

auto get_idx(std::string key, std::string from, std::string to = "eq") -> size_t
auto get_key(std::string key, std::string from, std::string to = "eq") -> std::string
auto get_idxs(std::string key, std::string from, std::string to) -> std::vector<size_t>
auto get_keys(std::string key, std::string from, std::string to) -> std::vector<std::string>
auto set_sorted_pcap_paths(std::string path) -> const SortedPathSet&
auto get_sorted_pcap_paths() -> const SortedPathSet&
auto get_in_filepath() -> const std::filesystem::path
auto get_out_filepath(std::string postfix = "") -> const std::filesystem::path
void dispatch()
void process_main(const std::filesystem::path abs_path)
void process_base()
void process(std::string granularity)
void writer(std::string granularity = "")
void print_buf_pkt(std::string out_pkt_filepath)
void print_path_details(const SortedPathSet& sorted, const std::string& title)

Public variables

size_t file_idx
size_t in_pkt_idx
std::vector<size_t> idxs
std::vector<std::string> g_lvs
std::unordered_map<std::string, size_t> g_lv_idx
TSharkMapper in_map
std::unordered_map<std::string, Mapper> out_maps
std::vector<nlohmann::json> in_pkts
std::unordered_map<std::string, std::vector<nlohmann::json>> out
std::unordered_map<std::string, std::set<std::string>> out_keys
std::unordered_map<std::string, std::vector<std::string>> out_idx2key
std::unordered_map<std::string, std::unordered_map<std::string, size_t>> out_key2idx
std::unordered_map<std::string, std::unordered_map<std::string, std::vector<std::string>>> out_child_keys
std::unordered_map<std::string, std::vector<std::vector<size_t>>> out_child_idxs
nlohmann::json tmp
size_t counter