48 const char* pStrTempValue;
54 while ( pStrTempValue[nLength] !=
'\0' )
59 if ( NULL == pStrValue )
63 else if ( nLength <= rnSize )
65 ::memcpy( pStrValue, pStrTempValue, (
size_t)nLength );
84 const char *pName = NULL;
105 rEntry =
EnumEntry( entry.name, entry.displayName, entry.description, entry.tooltip, entry.sfncNamespace, entry.visibility, entry.intValue );
128 const char *pName = NULL;
151 std::vector<const char*>
data( nCount );
159 for ( std::vector<const char*>::iterator iter = data.begin();
166 if ( NULL == pRange )
178 pRange[i] = iter->c_str();
206 std::vector<const char*>
data( nCount );
215 for ( std::vector<const char*>::iterator iter = data.begin();
234 if ( NULL == pValues )
245 pValues[i] = (*iter);
274 res =
GetEntry( entry, (*iter).c_str() );
288 if ( NULL == pEntries )
295 for ( EnumEntryVector::iterator iter =
m_EnumEntries.begin();
299 pEntries[i] = (*iter);
330 const char* pName = NULL;
EnumEntryVector m_EnumEntries
VmbHandle_t GetHandle() const
EnumFeature(const VmbFeatureInfo_t *featureInfo, FeatureContainer *const pFeatureContainer)
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumEntryGet(const VmbHandle_t handle, const char *featureName, const char *entryName, VmbFeatureEnumEntry_t *pFeatureEnumEntry, VmbUint32_t sizeofFeatureEnumEntry)
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumRangeQuery(const VmbHandle_t handle, const char *name, const char **pNameArray, VmbUint32_t arrayLength, VmbUint32_t *pNumFilled)
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumAsString(const VmbHandle_t handle, const char *name, VmbInt64_t intValue, const char **pStringValue)
StringVector m_EnumStringValues
virtual IMEXPORT VmbErrorType GetEntries(EnumEntry *pEntries, VmbUint32_t &size)
FeatureInfo m_featureInfo
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumSet(const VmbHandle_t handle, const char *name, const char *value)
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumIsAvailable(const VmbHandle_t handle, const char *name, const char *value, VmbBool_t *pIsAvailable)
struct VmbFeatureEnumEntry VmbFeatureEnumEntry_t
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumAsInt(const VmbHandle_t handle, const char *name, const char *value, VmbInt64_t *pIntVal)
virtual IMEXPORT VmbErrorType GetValue(VmbInt64_t &value) const
IMEXPORTC VmbError_t VMB_CALL VmbFeatureEnumGet(const VmbHandle_t handle, const char *name, const char **pValue)
virtual IMEXPORT VmbErrorType IsValueAvailable(const char *pStrValue, bool &available) const
virtual IMEXPORT VmbErrorType GetEntry(EnumEntry &entry, const char *pEntryName) const
Int64Vector m_EnumIntValues
virtual IMEXPORT VmbErrorType SetValue(const char *pValue)
FeatureContainer * m_pFeatureContainer
virtual IMEXPORT VmbErrorType GetValues(const char **pValues, VmbUint32_t &size)