SetReadCallback
|
|
[in] void* context
|
Address of the context in which the callback function will be called.
|
|
[in] FeatureCallback callback
|
Address of the callback function
|
|
[in] const char* feature
|
String containing the name of the feature whose value is about to be read by a client application.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
int CGigemuDlg::onFeatureRead(const char* feature)
|
{
|
if(CString(feature)=="Temperature")
|
{
|
float temp;
|
GetTemperatureFromSensor(&temp);
|
m_pCamera->SetFeatureFloatValue(feature, temp);
|
}
|
return 0;
|
}
|
....
|
m_pCamera->SetReadCallback(this, &::onFeatureRead);
|
....
|
}
|
|