28 #ifndef AVT_VMBAPI_FEATURE_HPP 29 #define AVT_VMBAPI_FEATURE_HPP 39 res = GetValues( (
const char **)NULL, nSize );
46 std::vector<const char*>
data( nSize );
47 res = GetValues( &data[0], nSize );
51 std::copy(
data.begin(),
data.end(), tmpValues.begin() );
52 rValues.swap( tmpValues);
74 res = GetEntries( (EnumEntry*)NULL, nSize );
82 res = GetEntries( &tmpEntries[0], nSize );
85 rEntries.swap( tmpEntries );
115 res = GetValues( &tmpValues[0], nSize );
118 rValues.swap( tmpValues );
135 inline VmbErrorType Feature::GetValue( std::string &rStrValue )
const 140 res = GetValue( (
char *
const)NULL, nLength );
147 std::vector<std::string::value_type> tmpValue( nLength + 1,
'\0' );
148 res = GetValue( &tmpValue[0], nLength );
151 rStrValue = &*tmpValue.begin();
171 return GetValue( rValue, i );
178 res = GetValue( NULL, nSize, rnSizeFilled );
186 res = GetValue( &tmpValue[0], nSize, rnSizeFilled );
189 rValue.swap( tmpValue);
208 if ( rValue.empty() )
212 return SetValue( &rValue[0], (
VmbUint32_t)rValue.size() );
215 inline VmbErrorType Feature::GetName( std::string &rStrName )
const 220 res = GetName( NULL, nLength );
227 std::vector<std::string::value_type> tmpName( nLength + 1,
'\0' );
228 res = GetName( &tmpName[0], nLength );
231 rStrName = &*tmpName.begin();
248 inline VmbErrorType Feature::GetDisplayName( std::string &rStrDisplayName )
const 253 res = GetDisplayName( NULL, nLength );
260 std::vector<std::string::value_type> tmpDisplayName( nLength + 1,
'\0' );
261 res = GetDisplayName( &tmpDisplayName[0], nLength );
264 rStrDisplayName = &*tmpDisplayName.begin();
274 rStrDisplayName.clear();
281 inline VmbErrorType Feature::GetCategory( std::string &rStrCategory )
const 286 res = GetCategory( NULL, nLength );
293 std::vector<std::string::value_type> tmpCategory( nLength + 1,
'\0' );
294 res = GetCategory( &tmpCategory[0], nLength );
297 rStrCategory = &*tmpCategory.begin();
307 rStrCategory.clear();
314 inline VmbErrorType Feature::GetUnit( std::string &rStrUnit )
const 319 res = GetUnit( NULL, nLength );
326 std::vector<std::string::value_type> tmpUnit( nLength + 1,
'\0' );
327 res = GetUnit( &tmpUnit[0], nLength );
330 rStrUnit = &*tmpUnit.begin();
347 inline VmbErrorType Feature::GetRepresentation( std::string &rStrRepresentation )
const 352 res = GetRepresentation( NULL, nLength );
359 std::vector<std::string::value_type> tmpRepresentation( nLength + 1,
'\0' );
360 res = GetRepresentation( &tmpRepresentation[0], nLength );
363 rStrRepresentation = &*tmpRepresentation.begin();
373 rStrRepresentation.clear();
380 inline VmbErrorType Feature::GetToolTip( std::string &rStrToolTip )
const 385 res = GetToolTip( NULL, nLength );
392 std::vector<std::string::value_type> tmpToolTip( nLength + 1,
'\0');
393 res = GetToolTip( &tmpToolTip[0], nLength );
396 rStrToolTip = &*tmpToolTip.begin();
413 inline VmbErrorType Feature::GetDescription( std::string &rStrDescription )
const 418 res = GetDescription( NULL, nLength );
425 std::vector<std::string::value_type> tmpDescription( nLength + 1,
'\0');
426 res = GetDescription( &tmpDescription[0], nLength );
429 rStrDescription = &*tmpDescription.begin();
439 rStrDescription.clear();
446 inline VmbErrorType Feature::GetSFNCNamespace( std::string &rStrSFNCNamespace )
const 451 res = GetSFNCNamespace( NULL, nLength );
458 std::vector<std::string::value_type> tmpSFNCNamespace( nLength + 1,
'\0' );
459 res = GetSFNCNamespace( &tmpSFNCNamespace[0], nLength );
462 rStrSFNCNamespace = &*tmpSFNCNamespace.begin();
472 rStrSFNCNamespace.clear();
484 res = GetAffectedFeatures( NULL, nSize );
492 res = GetAffectedFeatures( &tmpAffectedFeatures[0], nSize );
495 rAffectedFeatures.swap( tmpAffectedFeatures );
505 rAffectedFeatures.clear();
517 res = GetSelectedFeatures( NULL, nSize );
525 res = GetSelectedFeatures( &tmpSelectedFeatures[0], nSize );
528 rSelectedFeatures.swap ( tmpSelectedFeatures );
538 rSelectedFeatures.clear();
std::vector< EnumEntry > EnumEntryVector
std::vector< std::string > StringVector
std::vector< VmbUchar_t > UcharVector
std::vector< FeaturePtr > FeaturePtrVector
std::vector< VmbInt64_t > Int64Vector