DataStream
DataStream
Inherits from VariantDataStream
Public Functions
Name | |
---|---|
DataStream() | |
~DataStream() override | |
virtual int | dataTypeId() const override |
virtual QString | dataTypeName() const override |
virtual QHash< QString, QVariant > | metadata() override |
virtual void | setMetadata(const QHash< QString, QVariant > & metadata) override |
virtual void | setMetadataValue(const QString & key, const QVariant & value) override |
void | setSuggestedDataName(const QString & value) |
void | removeMetadata(const QString & key) |
virtual void | setCommonMetadata(const QString & srcModType, const QString & srcModName, const QString & portTitle) override |
std::shared_ptr< StreamSubscription< T > > | subscribe() |
virtual std::shared_ptr< VariantStreamSubscription > | subscribeVar() override |
bool | unsubscribe(StreamSubscription< T > * sub) |
virtual void | start() override |
virtual void | stop() override |
void | push(const T & data) |
virtual void | pushRawData(int typeId, const void * data, size_t size) override |
void | terminate() |
virtual bool | active() const override |
virtual bool | hasSubscribers() const override |
Additional inherited members
Public Functions inherited from VariantDataStream
Name | |
---|---|
virtual | ~VariantDataStream() |
Detailed Description
template <typename T >
class DataStream;
Public Functions Documentation
function DataStream
inline DataStream()
function ~DataStream
inline ~DataStream() override
function dataTypeId
inline virtual int dataTypeId() const override
Reimplements: VariantDataStream::dataTypeId
function dataTypeName
inline virtual QString dataTypeName() const override
Reimplements: VariantDataStream::dataTypeName
function metadata
inline virtual QHash< QString, QVariant > metadata() override
Reimplements: VariantDataStream::metadata
function setMetadata
inline virtual void setMetadata(
const QHash< QString, QVariant > & metadata
) override
Reimplements: VariantDataStream::setMetadata
function setMetadataValue
inline virtual void setMetadataValue(
const QString & key,
const QVariant & value
) override
Reimplements: VariantDataStream::setMetadataValue
function setSuggestedDataName
inline void setSuggestedDataName(
const QString & value
)
function removeMetadata
inline void removeMetadata(
const QString & key
)
function setCommonMetadata
inline virtual void setCommonMetadata(
const QString & srcModType,
const QString & srcModName,
const QString & portTitle
) override
Reimplements: VariantDataStream::setCommonMetadata
function subscribe
inline std::shared_ptr< StreamSubscription< T > > subscribe()
function subscribeVar
inline virtual std::shared_ptr< VariantStreamSubscription > subscribeVar() override
Reimplements: VariantDataStream::subscribeVar
function unsubscribe
inline bool unsubscribe(
StreamSubscription< T > * sub
)
function start
inline virtual void start() override
Reimplements: VariantDataStream::start
function stop
inline virtual void stop() override
Reimplements: VariantDataStream::stop
function push
inline void push(
const T & data
)
function pushRawData
inline virtual void pushRawData(
int typeId,
const void * data,
size_t size
) override
Reimplements: VariantDataStream::pushRawData
function terminate
inline void terminate()
function active
inline virtual bool active() const override
Reimplements: VariantDataStream::active
function hasSubscribers
inline virtual bool hasSubscribers() const override
Reimplements: VariantDataStream::hasSubscribers
Updated on 2024-11-06 at 17:10:29 +0000