YARP
Yet Another Robot Platform
PingSampler Class Reference
+ Inheritance diagram for PingSampler:

Public Member Functions

 PingSampler ()
 
bool read (ConnectionReader &connection) override
 Read this object from a network connection. More...
 
- Public Member Functions inherited from yarp::os::PortReader
virtual ~PortReader ()
 Destructor. More...
 
virtual Type getReadType () const
 

Public Attributes

std::mutex mutex
 
int ct {0}
 
double lastTime {0}
 
Stat period
 

Detailed Description

Definition at line 206 of file Ping.cpp.

Constructor & Destructor Documentation

◆ PingSampler()

PingSampler::PingSampler ( )
inline

Definition at line 214 of file Ping.cpp.

Member Function Documentation

◆ read()

bool PingSampler::read ( ConnectionReader reader)
inlineoverridevirtual

Read this object from a network connection.

Override this for your particular class.

Parameters
readeran interface to the network connection for reading
Returns
true iff the object is successfully read

Implements yarp::os::PortReader.

Definition at line 219 of file Ping.cpp.

Member Data Documentation

◆ ct

int PingSampler::ct {0}

Definition at line 210 of file Ping.cpp.

◆ lastTime

double PingSampler::lastTime {0}

Definition at line 211 of file Ping.cpp.

◆ mutex

std::mutex PingSampler::mutex

Definition at line 209 of file Ping.cpp.

◆ period

Stat PingSampler::period

Definition at line 212 of file Ping.cpp.


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