DUECA/DUSIME
|
This is a facilitator for writing event data. More...
#include <EventWriter.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 event data.
By creating a "EventWriter", an event data object is created. When at the end of scope the EventWriter is destroyed, the data object is sent over the channel.
Data | type of the event channel, normally a dco (DUECA Comunication Object), generated from a .dco file. |
An example, suppose you have created an EventChannelWriteToken for a channel with MyData objects:
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts = DataTimeSpec::now() ) |
Constructor.
Gains access to the channel for which the token was made.
token | Read access token. |
ts | Time specification. If not supplied, the current time will be taken. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1 ) |
Constructor.
Gains access to the channel for which the token was made, one variable-size array.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2 ) |
Constructor.
Gains access to the channel for which the token was made, two variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3 ) |
Constructor.
Gains access to the channel for which the token was made, three variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4 ) |
Constructor.
Gains access to the channel for which the token was made, four variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4, | ||
unsigned int | n5 ) |
Constructor.
Gains access to the channel for which the token was made, five variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array |
n5 | Size of the fifth variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4, | ||
unsigned int | n5, | ||
unsigned int | n6 ) |
Constructor.
Gains access to the channel for which the token was made, six variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array |
n5 | Size of the fifth variable-size array |
n6 | Size of the sixth variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4, | ||
unsigned int | n5, | ||
unsigned int | n6, | ||
unsigned int | n7 ) |
Constructor.
Gains access to the channel for which the token was made, seven variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array |
n5 | Size of the fifth variable-size array |
n6 | Size of the sixth variable-size array |
n7 | Size of the seventh variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4, | ||
unsigned int | n5, | ||
unsigned int | n6, | ||
unsigned int | n7, | ||
unsigned int | n8 ) |
Constructor.
Gains access to the channel for which the token was made, eight variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array |
n5 | Size of the fifth variable-size array |
n6 | Size of the sixth variable-size array |
n7 | Size of the seventh variable-size array |
n8 | Size of the eighth variable-size array. |
dueca::EventWriter< T >::EventWriter | ( | EventChannelWriteToken< T > & | token, |
const DataTimeSpec & | ts, | ||
unsigned int | n1, | ||
unsigned int | n2, | ||
unsigned int | n3, | ||
unsigned int | n4, | ||
unsigned int | n5, | ||
unsigned int | n6, | ||
unsigned int | n7, | ||
unsigned int | n8, | ||
unsigned int | n9 ) |
Constructor.
Gains access to the channel for which the token was made, nine variable-size arrays.
token | Read access token. |
ts | Time specification. |
n1 | Size of the variable-size array. |
n2 | Size of the second variable-size array. |
n3 | Size of the third variable-size array |
n4 | Size of the fourth variable-size array |
n5 | Size of the fifth variable-size array |
n6 | Size of the sixth variable-size array |
n7 | Size of the seventh variable-size array |
n8 | Size of the eighth variable-size array |
n9 | Size of the ninth variable-size array. |
|
inline |
Destructor.
Releases the access again with a token. This initiates the actual sending of the data.