#ifndef INI_HELPER_H #define INI_HELPER_H #include #define G(x) IniHelper::Get()->x #define GINIT() IniHelper::Get()->w class IniHelper { public: static IniHelper* Get(); public: static IniHelper* m_instance; IniHelper(); ~IniHelper(); public: std::string GetStr(std::string section, std::string item); float GetFloat(std::string section, std::string item); int GetInt(std::string section, std::string item); std::string GetRecord(); private: std::string mRecord; public: int w; int h; float fx; float fy; float cx; float cy; float k1; float k2; float p1; float p2; float k3; int yolo_label; float yolo_prob; std::string yolo_modol_path; std::string save_image; int roi_y_offset; int edge_min_line_len; int edge_max_line_gap; int edge_min_angle_th; float kk; float r; float p; float y; float tx; float ty; float tz; float dminx; float dmaxx; float dminy; float dmaxy; float dminz; float dmaxz; int cloud_need_points_size; std::string save_cload; std::string fake; std::string camera_cap_fake; std::string lidar_cap_fake; std::string npu_fake; std::string conners_detect_fake; std::string fake_image_fpath; std::string fake_lidar_fpath; int export_time; }; #endif