CacheEntry::Value
Retrieves the value of the cache entry.
Syntax
Section titled “Syntax”T Value() const;Return value
Section titled “Return value”The cached value currently stored for the cache entry. The data type T is that of the CacheEntry template instance.
Example
Section titled “Example”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;}