DUECA/DUSIME
|
This is a facilitator for writing multi-stream data. More...
#include <DataWriter.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 "DataWriter", the access token is used to gain access to the data in the channel. When at the end of scope the DataWriter is destroyed, the access is released again, and the actual data is sent.
An example, suppose you have created a ChannelWriteToken for a channel with MyData objects:
The DataWriter template, which will create an object for your modification, but always starts from clean, blank objects. Note that you should provide a proper definition of what is default when you write the .dco file defining your data type.
If you rather update an object you had previously sent, you can use the DataUpdater template. Note that the DataUpdater does not work for initialisation of array sizes.
|
inline |
Constructor.
Gains access to the channel for which the token was made.
token | Write access token. |
ts | Time specification. The specification is used, to define the new data validity span, or only the start time is used if the token has been opened with Channel::Events for time aspect. |
|
inline |
Constructor.
Gains access to the channel for which the token was made.
token | Write access token. |
ts | Time specification. |
|
inline |
Constructor with tick.
Gains access to the channel for which the token was made.
Note that this does not make sense with stream data, only for event data!
token | Write access token. |
ts | Time tick/moment. |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with one parameter, e.g. a variable-sized array.
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with one parameter, e.g. a variable-sized array.
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with one parameter, e.g. a variable-sized array.
Note that using only a tick does not make sense with stream data, only use for event data!
token | Write access token. |
ts | Time tick/moment. |
n1 | First parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with two parameters.
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with two parameters.
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with two parameters.
Note that using only a tick does not make sense with stream data, only use for event data!
token | Write access token. |
ts | Time tick/moment. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with three parameters
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
n3 | Third parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with three parameters
token | Write access token. |
ts | Time specification. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
n3 | Third parameter passed to the constructor of the written object |
|
inline |
Constructor.
Gains access to the channel for which the token was made, for initializing objects with three parameters
Note that using only a tick does not make sense with stream data, only use for event data!
token | Write access token. |
ts | Time tick/moment. |
n1 | First parameter passed to the constructor of the written object |
n2 | Second parameter passed to the constructor of the written object |
n3 | Third parameter passed to the constructor of the written object |