CacheEntry::IsValid
Indicates whether or not a cache entry is valid.
Syntax
Section titled “Syntax”bool IsValid() const;Return value
Section titled “Return value”Returns true if the cache entry is valid and false otherwise.
Example
Section titled “Example”The following example demonstrates use of the IsValid function.
ViStatus _VI_FUNC acme4321_Configure(ViSession Vi, ViReal64 Frequency, ViReal64 Gain){ auto status = VI_SUCCESS;
// Retrieve the cache entry for the Bandwidth attribute // auto entry = GetCacheEntry<ViReal64>(Vi, ACME4321_ATTR_BANDWIDTH);
if (entry.IsValid()) { // ... }
return status;}