/* * @Author: yangzilong * @Date: 2021-11-30 18:58:46 * @Last Modified by: yangzilong * @Last Modified time: Do not edit * @Email: yangzilong@objecteye.com * @Description: */ #pragma once #include "header.h" #include "det_obj_header.h" #include #include using namespace std; struct algor_open_config_param { set human_face_algors; set human_algors; set nonmotor_vehicle_algors; set vehicle_algors; }; class task_param_manager { public: using algo_param_type_t_ = algor_init_config_param_t; static task_param_manager* getInstance() { static task_param_manager task_param_instance; return &task_param_instance; } void add_task_param(string task_id, task_param task_param); void delete_task_param(string task_id); const algor_open_config_param *const get_task_algor_param(const string &task_id); const map *const get_task_other_param(const string& task_id); const algo_param_type_t_ *const get_task_other_param(const string& task_id, const algo_type &_algo_type); map get_task_algor_params(); map> get_task_other_params(); void task_param_manager_release(); private: task_param_manager(); task_param_manager(const task_param_manager& other); map> m_task_params; map m_algor_config_params; };