10#include <mx/ioutils/stringUtils.hpp>
72 const std::string &tstr
75 std::vector<std::string> v;
76 mx::ioutils::parseStringVector( v, tstr,
"[]" );
81 temps.
CCD = mx::ioutils::convertFromString<float>( v[1] );
82 temps.
CPU = mx::ioutils::convertFromString<float>( v[3] );
83 temps.
POWER = mx::ioutils::convertFromString<float>( v[5] );
84 temps.
BIAS = mx::ioutils::convertFromString<float>( v[7] );
85 temps.
WATER = mx::ioutils::convertFromString<float>( v[9] );
86 temps.
LEFT = mx::ioutils::convertFromString<float>( v[11] );
87 temps.
RIGHT = mx::ioutils::convertFromString<float>( v[13] );
88 temps.
SET = mx::ioutils::convertFromString<float>( v[15] ) / 10.0;
89 temps.
COOLING_POWER = mx::ioutils::convertFromString<float>( v[17] );
105 const std::string &fstr
108 std::vector<std::string> v;
109 mx::ioutils::parseStringVector( v, fstr,
"[]" );
114 fps = mx::ioutils::convertFromString<float>( v[1] );
132 const std::string &fstr
135 std::vector<std::string> v;
136 mx::ioutils::parseStringVector( v, fstr,
" " );
144 emGain = mx::ioutils::convertFromString<unsigned>( v[3] );
146 if( emGain < 1 || emGain > 600 )
int parseFPS(float &fps, const std::string &fstr)
Parse the FPS response.
int parseTemps(ocamTemps &temps, const std::string &tstr)
Parse the OCAM temp query and fill the ocamTemps structure.
int parseEMGain(unsigned &emGain, const std::string &fstr)
Parse the EM gain response.
Structure to hold the OCAM camera temperature readings returned by the device.
float WATER
Cooling water temperature.
int setInvalid()
Set all values to the invalid value, -999.
float COOLING_POWER
the cooling power in 100 mw.
float BIAS
Bias temperature.
bool operator==(const ocamTemps &t)
Test for equality between two ocamTemps structures.
float SET
The CCD set temeperature.
float CCD
The detector temperature.
float POWER
Power supply temperature.
float CPU
The CPU temperature.
float LEFT
The left amplifier temperature.
float RIGHT
The right amplifier temperature.