DUECA/DUSIME
|
This is a facilitator for writing event data. More...
Public Member Functions | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts=DataTimeSpec::now()) | |
Constructor. More... | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts, unsigned int n1) | |
Constructor. More... | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts, unsigned int n1, unsigned int n2) | |
Constructor. More... | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts, unsigned int n1, unsigned int n2, unsigned int n3) | |
Constructor. More... | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts, unsigned int n1, unsigned int n2, unsigned int n3, unsigned int n4) | |
Constructor. More... | |
EventWriter (EventChannelWriteToken< T > &token, const DataTimeSpec &ts, unsigned int n1, unsigned int n2, unsigned int n3, unsigned int n4, unsigned int n5) | |
Constructor. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
~EventWriter () | |
Destructor. More... | |
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.