ADTF
|
Default StreamType implementation. More...
Public Member Functions | |
cStreamType () | |
Default CTOR. | |
template<typename MetaType > | |
cStreamType (const MetaType &) | |
Convenience CTOR will create an Instance of given Stream Meta Type oTypeDefintion and sets the default properties. More... | |
cStreamType (const IStreamType &pType) | |
Copy CTOR will create fully deep copy of given pType . More... | |
virtual | ~cStreamType () |
DTOR. | |
tTimeStamp | GetTime () const |
tResult | SetTime (tTimeStamp oTimeStamp) |
tResult | GetMetaTypeName (base::ant::IString &&strTypeName) const override |
Get the meta type name of this instance. More... | |
adtf::util::tVersion | GetVersion () const override |
Get version of this instance of the StreamMetaType. More... | |
tResult | GetConfig (adtf::ucom::iobject_ptr< base::ant::IProperties > &pProperties) override |
Get all properties of a Stream Type (read/write) More... | |
tResult | GetConfig (adtf::ucom::iobject_ptr< const base::ant::IProperties > &pProperties) const override |
Get all properties of a Stream Type (read/write) More... | |
tResult | GetMetaType (adtf::ucom::iobject_ptr< const IStreamMetaType > &pMetaType) const override |
Get the Stream Meta Type definition of the Stream Type. More... | |
Public Member Functions inherited from object< IStreamType > | |
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 | |
cStreamType (const cStreamType &oType)=delete | |
hide copy CTOR | |
cStreamType & | operator= (const cStreamType &oType)=delete |
hide copy operator | |
cStreamType (cStreamType &&oType)=delete | |
hide move CTOR | |
cStreamType & | operator= (cStreamType &&oType)=delete |
hide move operator | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Private Member Functions | |
tResult | InitPropertiesFromStreamTypeDefintion (base::ant::IProperties &oWhereToSet, const IStreamMetaType &oStreamTypeDefintion) |
Private Attributes | |
adtf::ucom::object_ptr< base::ant::IProperties > | m_pProperties |
Properties of this instance. | |
adtf::ucom::object_ptr< const IStreamMetaType > | m_pStreamMetaType |
The StreamMetaType Definiton. | |
tTimeStamp | m_pTimeStamp = -1 |
Default StreamType implementation.
This StreamType is an instance of an StreamMetaType Definition (see IStreamMetaType)
IStreamMetaType will define which properties are valid and which default values are set. The cStreamtype will COPY this definitions, all values are adjustable!
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 281 of file streamtype.h.
|
inline |
Convenience CTOR will create an Instance of given Stream Meta Type oTypeDefintion
and sets the default properties.
MetaType | The implemementation class of a Stream Meta Type. This class must implement some constrains defined by the generator class stream_meta_type. |
Definition at line 303 of file streamtype.h.
References cStreamType::m_pProperties, and cStreamType::m_pStreamMetaType.
cStreamType | ( | const IStreamType & | pType | ) |
Copy CTOR will create fully deep copy of given pType
.
[in] | pType | Interface reference of the IStreamType that will be copied. |
|
override |
Get all properties of a Stream Type (read/write)
[out] | pProperties | All properties of a Stream Type (can be modified) |
ERR_NOERROR | Everything went fine |
|
override |
Get all properties of a Stream Type (read/write)
[out] | pProperties | All properties of a Stream Type (can be modified) |
ERR_NOERROR | Everything went fine |
|
override |
Get the Stream Meta Type definition of the Stream Type.
[out] | pMetaType | The Stream Meta Type definition of this Stream Type |
ERR_NOERROR | Everything went fine |
|
override |
Get the meta type name of this instance.
[out] | strTypeName | The meta type name as string |
ERR_NOERROR | Everything went fine |
|
override |
Get version of this instance of the StreamMetaType.