ADTF
|
Implements the default adtf::streaming::ant::IStreamMetaType interface. More...
Public Member Functions | |
tResult | GetMetaTypeName (IString &&strTypeName) const override |
Gets the unique meta type name. More... | |
adtf::util::tVersion | GetVersion () const override |
Get version of a Stream Type. More... | |
tResult | GetDefaultConfig (adtf::ucom::ant::iobject_ptr< const adtf::base::IProperties > &pProperties) const override |
Get the default configuration values for a Stream Type. More... | |
tResult | GetParent (adtf::ucom::ant::iobject_ptr< const IStreamMetaType > &pParent) const override |
This GetParent function is deprecated. More... | |
tResult | IsCompatible (const IStreamType &oTypeToCheck, const IStreamType &oTypeExpected) const override |
Compares the oTypeExpected Stream Type with the oTypeToCheck - see Default Stream Meta Types in ADTF for a summary of implementations. More... | |
cStreamMetaType () | |
Default CTOR. | |
virtual | ~cStreamMetaType ()=default |
DTOR. | |
Public Member Functions inherited from object< IStreamMetaType > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
tResult | SetMetaTypeName (const char *strTypeName) |
Sets the unique type name. More... | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Protected Attributes | |
cString | m_strMetaTypeName |
MetaTypeName of the StreamMetaType (like "adtf/default") | |
adtf::ucom::object_ptr< adtf::base::IProperties > | m_pDefaultProperties |
Default properties. | |
adtf::ucom::object_ptr< IStreamMetaType > | m_pParentMetaType |
parent if any | |
tVersion | m_sVersion |
version | |
Private Member Functions | |
cStreamMetaType (const cStreamMetaType &oFromStream)=delete | |
cStreamMetaType (cStreamMetaType &&oSource)=delete | |
cStreamMetaType & | operator= (const cStreamMetaType &oStreamType)=delete |
cStreamMetaType & | operator= (cStreamMetaType &&oStreamType)=delete |
Implements the default adtf::streaming::ant::IStreamMetaType interface.
Please have a look at Demo Custom Stream Type Filters Plugin on how to implement your own stream types and stream meta types.
Definition at line 27 of file streamtype.h.
|
override |
Get the default configuration values for a Stream Type.
[out] | pProperties | All properties of the default configuration |
ERR_NOERROR | Everything went fine |
|
override |
Gets the unique meta type name.
[out] | strTypeName | The meta type name as string |
ERR_NOERROR | Everything went fine |
|
override |
This GetParent function is deprecated.
[out] | pParent | The parent Stream Type definition |
ERR_NOERROR | Everything went fine |
ERR_NOT_SUPPORTED | Is not supported anymore |
|
override |
Get version of a Stream Type.
|
override |
Compares the oTypeExpected
Stream Type with the oTypeToCheck
- see Default Stream Meta Types in ADTF for a summary of implementations.
This default implementation of IsCompatible
will return ERR_NOERROR only if:
oTypeToCheck
is equal to GetMetaTypeName of oTypeExpected
oTypeToCheck
is equal to GetVersion of oTypeExpected
[in] | oTypeToCheck | The incoming type to check. |
[in] | oTypeExpected | The expected type which values are more significant. |
ERR_NOERROR | types are compatible |
Referenced by stream_meta_type< MetaTypeStruct >::IsCompatible().
|
protected |
Sets the unique type name.
[in] | strTypeName | the unique type name for this meta type so set. |
Referenced by stream_meta_type< MetaTypeStruct >::stream_meta_type().