Public Types | Public Member Functions | Public Attributes | List of all members
corbo::SignalInterface Class Referenceabstract

Interface class for signals. More...

#include <signals.h>

Inheritance diagram for corbo::SignalInterface:
Inheritance graph
[legend]

Public Types

using ConstPtr = std::shared_ptr< const SignalInterface >
 
using Ptr = std::shared_ptr< SignalInterface >
 

Public Member Functions

virtual SignalType getType () const =0
 Get the signal type according to enumeration SignalType. More...
 
virtual void getValueLabels (std::vector< std::string > &sublabels) const
 Return labels for the underlying components of the signal (e.g. axes labels) More...
 
virtual ~SignalInterface ()
 Virtual destructor. More...
 

Public Attributes

SignalHeader header
 The header of the signal. More...
 

Detailed Description

Interface class for signals.

Signals are generated in certain modules like controllers, obervers or tasks in order to provide internal data (e.g. measurements, states, statistics, ...). Signals are usually derived from SignalInterface which implements an adapter to the actually data including general signal information (refer to SignalHeader).

Signals are identified using unique names. Signalnamespaces can be set using a "/" as delimiter, e.g.: /c this/is/a_signal/with/namespaces. Names can only be composed of alphanumeric characters and underscores (_).

In general signals are provided as data stream and hence multiple signals with different time stamps can share the same identifier (name). Signals are usually sent/streamed to a SignalTargetInterface.

See also
SignalHeader SignalTargetInterface
Author
Christoph Rösmann (chris.nosp@m.toph.nosp@m..roes.nosp@m.mann.nosp@m.@tu-d.nosp@m.ortm.nosp@m.und.d.nosp@m.e)

Definition at line 133 of file signals.h.

Member Typedef Documentation

◆ ConstPtr

using corbo::SignalInterface::ConstPtr = std::shared_ptr<const SignalInterface>

Definition at line 137 of file signals.h.

◆ Ptr

using corbo::SignalInterface::Ptr = std::shared_ptr<SignalInterface>

Definition at line 136 of file signals.h.

Constructor & Destructor Documentation

◆ ~SignalInterface()

virtual corbo::SignalInterface::~SignalInterface ( )
inlinevirtual

Virtual destructor.

Definition at line 140 of file signals.h.

Member Function Documentation

◆ getType()

virtual SignalType corbo::SignalInterface::getType ( ) const
pure virtual

◆ getValueLabels()

virtual void corbo::SignalInterface::getValueLabels ( std::vector< std::string > &  sublabels) const
inlinevirtual

Return labels for the underlying components of the signal (e.g. axes labels)

Reimplemented in corbo::TimeSeriesSequenceSignal, corbo::TimeSeriesSignal, and corbo::Measurement.

Definition at line 146 of file signals.h.

Member Data Documentation

◆ header

SignalHeader corbo::SignalInterface::header

The header of the signal.

Definition at line 149 of file signals.h.


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


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:08:03