GetFeatureElement
Top  Previous  Next

Description

Returns the value of the specified element associated with the feature.

[C++]
int
 GetFeatureElement(const char* feature, const char* element, const char* pValue);


Parameters
[C/C++]

[in] const char* feature  
Name of the feature to which the element belongs.  
 
[in] const char* element  
Name of the element. Must be part of the feature.  
 
[in] const char* value  
Pointer to a buffer that receives the string value of the element.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Feature or element does not exist  
 

Example


The following fragment of the MFC code displays the value of the ToolTip element:  
 
   CString str;   
 char buf[256]  
   m_pCamera->GetFeatureElement("ExposureTime", "ToolTip", buf);     
 str.Format("%s", buf);  
   SetDlgItemText(IDC_EDIT, str);  
   return false;  

Remarks

This method allows you to directly access elements of the XML-file linked to the virtual camera object.

The use of this method requires an advanced knowledge of the GenICam standard and XML syntax. For more information please refer to SetFeatureElement.