Class DiagnosticTask

Inheritance Relationships

Derived Types

Class Documentation

class DiagnosticTask

DiagnosticTask is an abstract base class for collecting diagnostic data.

Subclasses are provided for generating common diagnostic information.

A DiagnosticTask has a name, and a function that is called to cleate a DiagnosticStatusWrapper.

Subclassed by diagnostic_updater::CompositeDiagnosticTask, diagnostic_updater::FrequencyStatus, diagnostic_updater::GenericFunctionDiagnosticTask< T >, diagnostic_updater::Heartbeat, diagnostic_updater::TimeStampStatus

Public Functions

inline explicit DiagnosticTask(const std::string name)

Constructs a DiagnosticTask setting its name in the process.

inline const std::string &getName()

Returns the name of the DiagnosticTask.

virtual void run(diagnostic_updater::DiagnosticStatusWrapper &stat) = 0

Fills out this Task’s DiagnosticStatusWrapper.

inline virtual ~DiagnosticTask()

Virtual destructor as this is a base class.