DataStream

DataStream

DataStream

More…

Inherits from VariantDataStream

Public Functions

Name
DataStream()
~DataStream() override
virtual intdataTypeId() const override
virtual QStringdataTypeName() const override
virtual QHash< QString, QVariant >metadata() override
virtual voidsetMetadata(const QHash< QString, QVariant > & metadata) override
virtual voidsetMetadataValue(const QString & key, const QVariant & value) override
voidsetSuggestedDataName(const QString & value)
voidremoveMetadata(const QString & key)
virtual voidsetCommonMetadata(const QString & srcModType, const QString & srcModName, const QString & portTitle) override
std::shared_ptr< StreamSubscription< T > >subscribe()
virtual std::shared_ptr< VariantStreamSubscription >subscribeVar() override
boolunsubscribe(StreamSubscription< T > * sub)
virtual voidstart() override
virtual voidstop() override
voidpush(const T & data)
virtual voidpushRawData(int typeId, const void * data, size_t size) override
voidterminate()
virtual boolactive() const override
virtual boolhasSubscribers() 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