52 Q_INVOKABLE QObject*
add(
const QString& strElementName,
const QJSValue& oElementType, quint64 nArraySize = 1);
68 QString getStreamMetaType()
const;
69 QVariantMap getProperties()
const;
72 Q_PROPERTY(QVariantMap properties READ getProperties);
73 Q_PROPERTY(QString stream_meta_type READ getStreamMetaType);
79 Q_INVOKABLE
void setProperty(
const QString& strName,
const QJSValue& oValue);
106 QJSEngine& m_oEngine;
128 Q_INVOKABLE
void setSubStream(
const QString& strName, quint32 nSubStreamId,
const QJSValue& oStreamType);
132 QJSEngine& m_oEngine;
144 cScriptTypes(QJSEngine& oEngine,
const adtf::util::cFilepath& strScriptFolder);
216 Q_INVOKABLE QObject*
fromDescriptionFile(
const QString& strStructName,
const QString& strFileName,
bool bResolveStruct =
true);
229 Q_INVOKABLE QObject*
fromDescriptionString(
const QString& strStructName,
const QString& strMediaDescription,
bool bResolveStruct =
true);
232 QJSEngine& m_oEngine;
233 adtf::util::cFilepath m_strScriptFolder;
Copyright © Audi Electronics Venture GmbH.
A wrapper for adtf::mediadescription::structure.
Q_INVOKABLE QObject * add(const QString &strElementName, const QJSValue &oElementType, quint64 nArraySize=1)
Adds an element to the structure definition.
Provides the global 'types' object within scripts.
Q_INVOKABLE QObject * createStreamType(const QString &strMetaType)
Create a new cStreamTypeWrapper instance with the given Stream Meta Type.
Q_INVOKABLE QObject * createPlainStreamType(const QString &strCType)
Create a new cStreamTypeWrapper instance for a adtf/plain stream type with the a given c-type.
Q_INVOKABLE QObject * getDefinition(const QString &strStructName)
Returns a stream type with a media description set from the Media Description Service.
Q_INVOKABLE QObject * createDefinition(const QString &strStructName)
Create a new cScriptStructure definition.
Q_INVOKABLE QObject * fromDescriptionFile(const QString &strStructName, const QString &strFileName, bool bResolveStruct=true)
Creates an 'adtf/default' Stream Type from the given media description file.
Q_INVOKABLE QObject * createSubStreamsType()
Creates a stream type that can handle Substreams.
Q_INVOKABLE QObject * fromDescriptionString(const QString &strStructName, const QString &strMediaDescription, bool bResolveStruct=true)
Creates an 'adtf/default' Stream Type from the given media description string.
A wrapper for stream types.
Q_INVOKABLE QObject * getSubStreamType(const QString &strSubStream)
Return an StreamType from the stream type if found, otherwise return null.
Q_INVOKABLE void setProperty(const QString &strName, const QJSValue &oValue)
Set a property to a given value.
Q_INVOKABLE QList< QString > getSubStreams()
Returns a list of all substreams.
A wrapper for stream types.
Q_INVOKABLE void setSubStream(const QString &strName, quint32 nSubStreamId, const QJSValue &oStreamType)
Adds or updates a Substream.
Helper class to create a stream type with multiple Substreams.
Object pointer implementation used for reference counting on objects of type IObject.
Utility class for a complete valid data definition of one StructType and its dependencies.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.