// Change a setting at runtime config.setISO(1600);
// Feature Implementation: Save Configuration void CamConfig::saveConfig(const std::string& filename) { std::ofstream file(filename); camconfig.cpp
if (!file.is_open()) { std::cerr << "[CamConfig] Config file not found: " << filename << ". Using defaults." << std::endl; return false; } // Change a setting at runtime config
#endif // CAMCONFIG_H
// Constructor CamConfig::CamConfig() { applyDefaults(); } if (!file.is_open()) { std::cerr <
// A struct to hold specific camera settings struct CameraSettings { int width; int height; int framerate; int iso; std::string pixelFormat; };
private: CameraSettings m_settings;