YARP  2.3.70
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)
 
void setPortReader (yarp::os::PortReader *reader)
 Set the reference to a PortReader object. More...
 
yarp::os::PortReadergetPortReader (void)
 
bool setConnectionReader (yarp::os::ConnectionReader &reader)
 set a reference to a ConnectionReader More...
 
bool write (yarp::os::ConnectionWriter &connection)
 
void reset ()
 
template<typename T >
T * cast_as (void)
 
bool hasBeenRead ()
 

Private Attributes

bool beenRead
 
yarp::os::ConnectionReaderconReader
 
yarp::os::PortWriterwriter
 
yarp::os::PortReaderreader
 
yarp::os::Portableportable
 

Detailed Description

Base class for generic things.

Definition at line 24 of file Things.h.

Constructor & Destructor Documentation

◆ Things()

Things::Things ( )

Definition at line 12 of file Things.cpp.

◆ ~Things()

Things::~Things ( )
virtual

Definition at line 20 of file Things.cpp.

Member Function Documentation

◆ cast_as()

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

Definition at line 88 of file Things.h.

◆ getPortReader()

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

Definition at line 51 of file Things.h.

◆ getPortWriter()

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

Definition at line 39 of file Things.h.

◆ hasBeenRead()

bool yarp::os::Things::hasBeenRead ( )
inline

Definition at line 112 of file Things.h.

◆ reset()

void yarp::os::Things::reset ( )
inline

Definition at line 77 of file Things.h.

◆ setConnectionReader()

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

set a reference to a ConnectionReader

Definition at line 58 of file Things.h.

◆ setPortReader()

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

Set the reference to a PortReader object.

Definition at line 47 of file Things.h.

◆ setPortWriter()

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

Set the reference to a PortWriter object.

Definition at line 35 of file Things.h.

◆ write()

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

Definition at line 69 of file Things.h.

Member Data Documentation

◆ beenRead

bool yarp::os::Things::beenRead
private

Definition at line 117 of file Things.h.

◆ conReader

yarp::os::ConnectionReader* yarp::os::Things::conReader
private

Definition at line 118 of file Things.h.

◆ portable

yarp::os::Portable* yarp::os::Things::portable
private

Definition at line 121 of file Things.h.

◆ reader

yarp::os::PortReader* yarp::os::Things::reader
private

Definition at line 120 of file Things.h.

◆ writer

yarp::os::PortWriter* yarp::os::Things::writer
private

Definition at line 119 of file Things.h.


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