NetBurner 3.5.6
PDF Version
DiagVarMon Class Reference

Monitor and report the value of numeric variables. More...

#include <diagnostics.h>

Inherits DiagItemClass.

Public Member Functions

 DiagVarMon (const char *name, uint32_t &v)
 Constructor for monitoring numeric variables.
 
virtual void ServeContent (int fd)
 Pure virtual function to output diagnostic content.
 

Detailed Description

Monitor and report the value of numeric variables.

Constructor & Destructor Documentation

◆ DiagVarMon()

DiagVarMon::DiagVarMon ( const char * name,
uint32_t & v )
inline

Constructor for monitoring numeric variables.

Creates a diagnostic monitor for various numeric data types. The constructor automatically determines the appropriate formatting based on the variable type:

  • Signed integers are displayed as signed decimal numbers
  • Unsigned integers are displayed as unsigned decimal numbers
  • Floating point numbers are displayed in general format (g)
Parameters
nameDisplay name for this variable in the diagnostic output
vReference to the variable to monitor

The documentation for this class was generated from the following file: