RixStats::SimpleStat Class Reference
RixStats::SimpleStat Class Referenceabstract
#include <RixInterfaces.h>
Public Types | |
enum | Fmt { k_fmtAsTimeInterval, k_fmtAsMemory, k_fmtAsUInt, k_fmtAsInt, k_fmtAsFloat } |
Public Member Functions | |
virtual void | Reset ()=0 |
virtual const char * | GetName ()=0 |
virtual const char * | GetDescription ()=0 |
virtual void | GetResults (RtUInt64 *result, Fmt *fmt)=0 |
Detailed Description
Add a generic statistic via a subclass of the SimpleStat class interface. Rix takes ownership of the SimpleStat object and may destroy the object when the Rix session changes state. A duplicate call with the same name as a previously added statistic is ignored and will be deleted. We use TgUInt64 as the information exchange since it's is both portably and can hold large numbers. AddSimpleStat returns 0 on success, non-zero on failure.
The documentation for this class was generated from the following file: