ADTF
cOutPin

The cOutPin class implements basic functionality specified by the IOutPin interface. More...

Inheritance diagram for cOutPin:
[legend]

Public Member Functions

 cOutPin ()
 private dPointer More...
 
 cOutPin (const char *strName)
 CTOR with name. More...
 
virtual ~cOutPin ()
 DTOR.
 
tResult GetType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const override
 
bool IsConnected () const override
 
tResult SetActive () override
 
tResult SetInactive () override
 
tResult Disconnect ()
 
tResult GetSampleStream (ucom::ant::iobject_ptr< ISampleStream > &pSampleStream) const override
 
tResult Connect (const ucom::ant::iobject_ptr< ISampleStream > &pSampleStream) override
 
tResult RegisterStreamer (ISampleWriter &pStreamWriter)
 Registers a Streamer to the Pin. More...
 
tResult UnregisterStreamer (ISampleStreamer &pStreamWriter)
 Unregisters a registered Streamer from the Pin. More...
 
- Public Member Functions inherited from object< IPin, named_graph_object< trigger_pipe_item< IOutPin > > >
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...
 

Additional Inherited Members

- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Detailed Description

The cOutPin class implements basic functionality specified by the IOutPin interface.

Definition at line 95 of file pin.h.

Constructor & Destructor Documentation

◆ cOutPin() [1/2]

cOutPin ( )

private dPointer

CTOR

◆ cOutPin() [2/2]

cOutPin ( const char *  strName)

CTOR with name.

Parameters
[in]strNameName of the pin

Member Function Documentation

◆ RegisterStreamer()

tResult RegisterStreamer ( ISampleWriter pStreamWriter)

Registers a Streamer to the Pin.

Every registered ISampleStreamer will retrieve a ISampleStreamer::BeginStreaming call, while the Pin is connected via connect call. If pin is already connected a ISampleStreamer::BeginStreaming is immediatelly made.

Remarks
Make sure the instance of pStreamReader will live as long as the Pin or unregister it on destroy.
Parameters
[in]pStreamWriterThe Streamer to register.
Returns
Standard Result Code

◆ UnregisterStreamer()

tResult UnregisterStreamer ( ISampleStreamer pStreamWriter)

Unregisters a registered Streamer from the Pin.

Every registered ISampleStreamer will retrieve a ISampleStreamer::BeginStreaming call, while the Pin is connected via Connect call. While unregistering from a connected pin a ISampleStreamer::EndStreaming call is made.

Remarks
Make sure the instance of pStreamReader will live as long as the Pin or unregister it on destroy.
Parameters
[in]pStreamWriterThe Streamer to unregister.
Returns
Standard Result Code
Return values
ERR_NOT_FOUNDThe Streamer is not registered.