ADTF
Loading...
Searching...
No Matches
adtf::ucom::ant::IOutputStream Class Referenceabstract

#include <stream_intf.h>

Inherits adtf::ucom::ant::IObject.

Inherited by adtf::ucom::ant::IStream.

Public Member Functions

 ADTF_IID (IOutputStream, "output_stream.ant.ucom.adtf.iid")
 
virtual tResult Write (const void *pvBuffer, size_t nBufferSize, size_t *pnBytesWritten=nullptr)=0
 
- Public Member Functions inherited from adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Detailed Description

An interface for writing data to a stream.

Member Function Documentation

◆ ADTF_IID()

adtf::ucom::ant::IOutputStream::ADTF_IID ( IOutputStream ,
"output_stream.ant.ucom.adtf.iid"  )

Marks the IOutputStream to be castable with the ucom_cast<>

See also
ADTF_IID(_interface, _striid)

◆ Write()

virtual tResult adtf::ucom::ant::IOutputStream::Write ( const void * pvBuffer,
size_t nBufferSize,
size_t * pnBytesWritten = nullptr )
pure virtual

Write data to stream. The Write method writes data to a stream.

Parameters
pvBuffer[in] Pointer to an existing buffer.
nBufferSize[in] Size in bytes of the existing buffer.
pnBytesWritten[in,out] Pointer to a variable that receives the number of bytes that actually have been written.
Returns
Returns a standard result code.

The documentation for this class was generated from the following file: