DeviceBase Class Reference

#include <RobotAPI/components/units/RobotUnit/Devices/DeviceBase.h>

+ Inheritance diagram for DeviceBase:

Public Member Functions

 DeviceBase (const std::string &name)
 Create a Device with the given name.
 
const std::string & getDeviceName () const
 
const std::set< std::string > & getTags () const
 
virtual bool hasError ()
 
bool hasTag (const std::string &tag) const
 
const char * rtGetDeviceName () const
 
virtual ~DeviceBase ()=default
 

Protected Member Functions

void addDeviceTag (const std::string &tag)
 adds the given tag to the Device
 

Constructor & Destructor Documentation

◆ DeviceBase()

DeviceBase ( const std::string & name)
inline

Create a Device with the given name.

◆ ~DeviceBase()

virtual ~DeviceBase ( )
virtualdefault

Member Function Documentation

◆ addDeviceTag()

void addDeviceTag ( const std::string & tag)
inlineprotected

adds the given tag to the Device

◆ getDeviceName()

const std::string & getDeviceName ( ) const
inline
Returns
The Device's name

◆ getTags()

const std::set< std::string > & getTags ( ) const
inline
Returns
Thes set of tags for this Device

◆ hasError()

virtual bool hasError ( )
inlinevirtual

◆ hasTag()

bool hasTag ( const std::string & tag) const
inline
Returns
Whether the device has the given tag

◆ rtGetDeviceName()

const char * rtGetDeviceName ( ) const
inline
Returns
The Device's name

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