cisst-saw
Loading...
Searching...
No Matches
mtsWatchdogServer Class Reference

#include <mtsWatchdogServer.h>

Inheritance diagram for mtsWatchdogServer:
cmnGenericObject

Public Member Functions

 mtsWatchdogServer (void)
 ~mtsWatchdogServer ()
void AddToProvidedInterface (mtsInterfaceProvided &provInt, mtsStateTable &stateTable)
void SetTimeoutPeriod (const double &seconds)
void Start (void)
bool CheckAndUpdate (void)
void Reset (void)
Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
virtual const cmnClassServicesBaseServices (void) const =0
bool ReconstructFrom (const cmnGenericObject &other)
std::string ToString (void) const
virtual void ToStream (std::ostream &outputStream) const
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter=' ')
virtual void SerializeRaw (std::ostream &outputStream) const
virtual void DeSerializeRaw (std::istream &inputStream)
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
virtual size_t ScalarNumber (void) const
virtual bool ScalarNumberIsFixed (void) const
virtual double Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const

Protected Attributes

osaStopwatch StopWatch
double Timeout
mtsFunctionWriteWatchdogReadBool
mtsFunctionWriteWatchdogWriteBool
bool IsOK
bool WatchdogState

Detailed Description

A tool for observing a connection between two components for a set amount of time.

Todo
Should be easy to merge server and client into a single object. Could integrate into standard component interfaces.

Constructor & Destructor Documentation

◆ mtsWatchdogServer()

mtsWatchdogServer::mtsWatchdogServer ( void )
inline

◆ ~mtsWatchdogServer()

mtsWatchdogServer::~mtsWatchdogServer ( )
inline

Member Function Documentation

◆ AddToProvidedInterface()

void mtsWatchdogServer::AddToProvidedInterface ( mtsInterfaceProvided & provInt,
mtsStateTable & stateTable )

◆ CheckAndUpdate()

bool mtsWatchdogServer::CheckAndUpdate ( void )

◆ Reset()

void mtsWatchdogServer::Reset ( void )

◆ SetTimeoutPeriod()

void mtsWatchdogServer::SetTimeoutPeriod ( const double & seconds)
inline

◆ Start()

void mtsWatchdogServer::Start ( void )

Member Data Documentation

◆ IsOK

bool mtsWatchdogServer::IsOK
protected

◆ StopWatch

osaStopwatch mtsWatchdogServer::StopWatch
protected

◆ Timeout

double mtsWatchdogServer::Timeout
protected

◆ WatchdogReadBool

mtsFunctionWrite* mtsWatchdogServer::WatchdogReadBool
protected

◆ WatchdogState

bool mtsWatchdogServer::WatchdogState
protected

◆ WatchdogWriteBool

mtsFunctionWrite* mtsWatchdogServer::WatchdogWriteBool
protected

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