YARP
Yet Another Robot Platform
yarp::os::Things Class Reference

Base class for generic things. More...

#include <yarp/os/Things.h>

Public Member Functions

 Things ()
 
virtual ~Things ()
 
void setPortWriter (yarp::os::PortWriter *writer)
 Set the reference to a PortWriter object. More...
 
yarp::os::PortWritergetPortWriter ()
 
void setPortReader (yarp::os::PortReader *reader)
 Set the reference to a PortReader object. More...
 
yarp::os::PortReadergetPortReader ()
 
bool setConnectionReader (yarp::os::ConnectionReader &reader)
 set a reference to a ConnectionReader More...
 
bool write (yarp::os::ConnectionWriter &connection)
 
void reset ()
 
bool hasBeenRead ()
 
template<typename T >
T * cast_as ()
 

Detailed Description

Base class for generic things.

Definition at line 21 of file Things.h.

Constructor & Destructor Documentation

◆ Things()

Things::Things ( )

Definition at line 15 of file Things.cpp.

◆ ~Things()

Things::~Things ( )
virtual

Definition at line 24 of file Things.cpp.

Member Function Documentation

◆ cast_as()

template<typename T >
T* yarp::os::Things::cast_as ( )
inline

Definition at line 57 of file Things.h.

◆ getPortReader()

yarp::os::PortReader * Things::getPortReader ( )

Definition at line 44 of file Things.cpp.

◆ getPortWriter()

yarp::os::PortWriter * Things::getPortWriter ( )

Definition at line 34 of file Things.cpp.

◆ hasBeenRead()

bool Things::hasBeenRead ( )

Definition at line 78 of file Things.cpp.

◆ reset()

void Things::reset ( )

Definition at line 68 of file Things.cpp.

◆ setConnectionReader()

bool Things::setConnectionReader ( yarp::os::ConnectionReader reader)

set a reference to a ConnectionReader

Definition at line 49 of file Things.cpp.

◆ setPortReader()

void Things::setPortReader ( yarp::os::PortReader reader)

Set the reference to a PortReader object.

Definition at line 39 of file Things.cpp.

◆ setPortWriter()

void Things::setPortWriter ( yarp::os::PortWriter writer)

Set the reference to a PortWriter object.

Definition at line 29 of file Things.cpp.

◆ write()

bool Things::write ( yarp::os::ConnectionWriter connection)

Definition at line 57 of file Things.cpp.


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