| 27 | } // namespace |
| 28 | |
| 29 | bool FreqFileLoader::LoadConfig(const std::string& config_file) { |
| 30 | if (!io_util::LoadConfig(config_file, &ns_size_, &id_name_map_)) { |
| 31 | DXERROR("Failed to load config file."); |
| 32 | return false; |
| 33 | } |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | bool FreqFileLoader::LoadFreq(const std::string& dir, int thread_num) { |
| 38 | DXINFO("Loading files from dir: %s.", dir.c_str()); |