GetFeatureEnumList
Top  Previous  Next

Description

Returns the array of string values representing the specified enumerated feature.

[C++]

const
 char** GetFeatureEnumList(const char* feature, int* pSize);


Parameters
[C/C++]

[in] const char* feature  
Name of the feature. Must be an existing feature of the enumerated type.  
 
[in] int* pSize  
Pointer to a variable that receives the number of entries in the enumerated list.  
 

Return Values


Array of strings containing the list of enumerated entries.  
 

Example


This fragment of code instantiates a camera object, creates an enumerated feature and sets up a list of three entries:

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
m_pCamera->CreateFeature(FEATURE_TYPE_ENUMERATION, "TestImageSelector", "Root", FEATURE_ACCESS_RW);  
 
m_pCamera->setEnumEntry("TestImageSelector", "First pattern", 1);  
m_pCamera->setEnumEntry("TestImageSelector", "Second pattern", 2);  
m_pCamera->setEnumEntry("TestImageSelector", "Third pattern", 3);  


Remarks


If the specified feature is not of the enumerated type or not existent, the method will return zero.