#include <interfaces.h>
Inheritance diagram for simth::OutputInterface:
Public Member Functions | |
OutputInterface (Device *const dev, int ID) | |
virtual | ~OutputInterface () |
virtual void | connect (InputInterface *interfacePtr)=0 |
virtual void | reset ()=0 |
virtual size_t | sequenceCapacity () const =0 |
virtual size_t | sequenceLength () const =0 |
virtual void | setSequenceCapacity (size_t size)=0 |
virtual void | setSequenceLength (size_t size)=0 |
virtual bool | isConnected () const =0 |
virtual void | flushProcessedSequences ()=0 |
virtual void | processFinished ()=0 |
Static Protected Member Functions | |
static std::string | wrongConnectionMsg (const std::type_info &output_if, const std::type_info &input_if) |
The output interface provides sequences that are used by the parent device as output sequences. (Actually it provides for the parent device a direct connection to one (or more) input interface of connected devices.)
The output sequence that can be used by the device is returned by the function internSequence(). Since this function is a template function it is not defined in this abstract base class but it is defined in the derived template class.
The resulting length of the output sequence equals sequenceLength() while the capacity that can be used equals sequenceCapacity(). Unlike with vectors defined in the STD-library, an output sequence can only be resized to sizes that are smaller or equal the capacity of that output sequence.
|
|
|
|
|
Implemented in simth::OutputInterfaceT< T >. |
|
Resets the interface. After calling that function the interface should behave as before any data had arrived. Implemented in simth::OutputInterfaceT< T >. |
|
Returns the capacity of the output sequence. See class documentation for more details. Implemented in simth::OutputInterfaceT< T >. |
|
Returns the length of the output sequence. Implemented in simth::OutputInterfaceT< T >. |
|
Sets the capacity of the output sequence. See class documentation for more details. Implemented in simth::OutputInterfaceT< T >. |
|
Sets the length of the output sequence. Implemented in simth::OutputInterfaceT< T >. |
|
Returns true if the input interface is connected with another device Implemented in simth::OutputInterfaceT< T >. |
|
Informs the connected input interface, that the prompted output sequence is filled and can be used by the connected input interface. Implemented in simth::OutputInterfaceT< T >. |
|
Is called when the process finished. For now it only checks some internal states of the output interface. Implemented in simth::OutputInterfaceT< T >. |
|
Returns the error message for non-matching types of a given output interface type and one input interface type. This already uses name demangling.
Note: You get the |