CacheEntry::Value |
Retrieves the value of the cache entry.
T Value() const;
The cached value currently stored for the cache entry. The data type T is that of the CacheEntry template instance.
The following example demonstrates use of the Value function.
ViStatus _VI_FUNC acme4321_get_BANDWIDTH(ViSession Vi, ViConstString RepCapIdentifier, ViReal64* AttributeValue)
{
auto status = VI_SUCCESS;
// Retrieve the cache entry for the Bandwidth attribute
//
auto& entry = GetCacheEntry<ViReal64>(Vi, ACME4321_ATTR_BANDWIDTH);
auto value = entry.Value();
// ...
return status;
}