DUECA/DUSIME
|
This is a facilitator for writing multi-stream data. More...
#include <MultiStreamWriter.hxx>
Additional Inherited Members | |
Protected Member Functions inherited from dueca::DataWriterBase | |
DataWriterBase (ChannelWriteToken &token, const DataTimeSpec &ts) | |
Constructor. | |
void | releaseAccess (void *data_ptr) |
Releasing the read access means that the data will be made accessible for reading. | |
void | baseCheckAccess (uint32_t magic) |
Verify the magic number and validity for access. | |
Protected Attributes inherited from dueca::DataWriterBase | |
ChannelWriteToken & | token |
Access to the channel. | |
DataTimeSpec | ts |
Time specification to be used. | |
This is a facilitator for writing multi-stream data.
By creating a "MultiStreamWriter", the access token is used to gain access to the data in the channel. When at the end of scope the MultiStreamWriter is destroyed, the access is released again, and the actual data is sent.
An example, suppose you have created a MultiStreamChannelWriteToken for a channel with MyData objects:
MultiStream channels work differently from Event and Stream channels, in that the data written there is persistent. The next time you create a MultiStreamWriter on a channel, the data you had written before is present (and readable) in the Writer. If you want, you can limit yourself to only writing the changes.
|
inline |
Constructor.
Gains access to the channel for which the token was made.
token | Read access token. |
ts | Time specification. |
|
inline |
Destructor.
Releases the access again with a token.
|
inline |
Check that the stream writing is OK.
Only applicable in code without exceptions.