19 mx::app::appConfigurator & config
22 std::vector<std::string> sections;
24 config.unusedSections(sections);
26 if( sections.size() == 0 )
31 for(
size_t i=0; i< sections.size(); ++i)
33 bool fileset = config.isSetUnused(mx::app::iniFile::makeKey(sections[i],
"configFile" ));
41 if( !fileset )
continue;
43 std::string configFile;
44 config.configUnused(configFile, mx::app::iniFile::makeKey(sections[i],
"configFile" ));
46 std::string serialCommand;
47 config.configUnused(serialCommand, mx::app::iniFile::makeKey(sections[i],
"serialCommand" ));
50 config.configUnused(centerX, mx::app::iniFile::makeKey(sections[i],
"centerX" ));
53 config.configUnused(centerY, mx::app::iniFile::makeKey(sections[i],
"centerY" ));
56 config.configUnused(sizeX, mx::app::iniFile::makeKey(sections[i],
"sizeX" ));
59 config.configUnused(sizeY, mx::app::iniFile::makeKey(sections[i],
"sizeY" ));
61 unsigned binningX = 1;
62 config.configUnused(binningX, mx::app::iniFile::makeKey(sections[i],
"binningX" ));
64 unsigned binningY = 1;
65 config.configUnused(binningY, mx::app::iniFile::makeKey(sections[i],
"binningY" ));
67 unsigned dbinningX = 1;
68 config.configUnused(dbinningX, mx::app::iniFile::makeKey(sections[i],
"digital_binningX" ));
70 unsigned dbinningY = 1;
71 config.configUnused(dbinningY, mx::app::iniFile::makeKey(sections[i],
"digital_binningY" ));
74 config.configUnused(maxFPS, mx::app::iniFile::makeKey(sections[i],
"maxFPS" ));
76 ccmap[sections[i]] =
cameraConfig({configFile, serialCommand, centerX, centerY, sizeX, sizeY,
77 binningX, binningY, dbinningX, dbinningY, maxFPS});
std::unordered_map< std::string, cameraConfig > cameraConfigMap
int loadCameraConfig(cameraConfigMap &ccmap, mx::app::appConfigurator &config)
Load the camera configurations contained in the app configuration into a map.
Standard camera interface.
#define CAMCTRL_E_NOCONFIGS