Syntalos::InputPortInfo
Syntalos::InputPortInfo
Reference for an input port.
#include <syntaloslink.h>
Public Functions
| Name | |
|---|---|
| std::string | id() const |
| int | dataTypeId() const |
| std::string | title() const |
| MetaStringMap | metadata() const |
| InputPortInfo(const InputPortInfo & ) =delete | |
| InputPortInfo & | operator=(const InputPortInfo & ) =delete |
| void | setNewDataRawCallback(NewDataRawFn callback) Sets a function to be called when new data arrives. |
| void | setThrottleItemsPerSec(uint itemsPerSec) |
| std::optional< MetaValue > | metadataValue(const std::string & key) const Retrieves the metadata value associated with a given key. |
| MetaValue | metadataValueOr(const std::string & key, const MetaValue & defaultVal) const |
| template <typename T > T | metadataValueOr(const std::string & key, T fallback) const |
Public Functions Documentation
function id
std::string id() constfunction dataTypeId
int dataTypeId() constfunction title
std::string title() constfunction metadata
MetaStringMap metadata() constfunction InputPortInfo
InputPortInfo(
const InputPortInfo &
) =deletefunction operator=
InputPortInfo & operator=(
const InputPortInfo &
) =deletefunction setNewDataRawCallback
void setNewDataRawCallback(
NewDataRawFn callback
)Sets a function to be called when new data arrives.
The data memory block passed to this function is only valid during the call.
function setThrottleItemsPerSec
void setThrottleItemsPerSec(
uint itemsPerSec
)function metadataValue
std::optional< MetaValue > metadataValue(
const std::string & key
) constRetrieves the metadata value associated with a given key.
Parameters:
- key The key to look up in the metadata.
Return: An optional MetaValue containing the value associated with the key, or std::nullopt if the key does not exist.
function metadataValueOr
MetaValue metadataValueOr(
const std::string & key,
const MetaValue & defaultVal
) constfunction metadataValueOr
template <typename T >
inline T metadataValueOr(
const std::string & key,
T fallback
) constUpdated on 2026-04-24 at 23:36:58 +0000