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

Base class for generic things. More...

#include <yarp/os/Things.h>

Detailed Description

Base class for generic things.

Definition at line 21 of file 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 ()
 
bool hasBeenRead ()
 
template<typename T >
T * cast_as (void)
 

Private Attributes

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

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 ( void  )
inline

Definition at line 57 of file Things.h.

◆ getPortReader()

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

Definition at line 44 of file Things.cpp.

◆ getPortWriter()

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

Definition at line 34 of file Things.cpp.

◆ hasBeenRead()

bool Things::hasBeenRead ( )

Definition at line 82 of file Things.cpp.

◆ reset()

void Things::reset ( )

Definition at line 70 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 59 of file Things.cpp.

Member Data Documentation

◆ beenRead

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

Definition at line 81 of file Things.h.

◆ conReader

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

Definition at line 82 of file Things.h.

◆ portable

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

Definition at line 85 of file Things.h.

◆ reader

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

Definition at line 84 of file Things.h.

◆ writer

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

Definition at line 83 of file Things.h.


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