#include <fw/ChannelReadWrite.h>
template<typename Derived>
class mira::ChannelReadWriteCommonBase< Derived >
- Note
- : NEVER EXPOSE THE CHANNELPTR OR CHANNEL DIRECTLY TO THE USER. The user is allowed to access the channel using the Channel<T> proxy ONLY!
◆ Shared
◆ SharedPtr
◆ ChannelType
◆ ChannelTypePtr
◆ Slot
◆ ValueType
◆ ChannelReadWriteCommonBase() [1/2]
◆ ChannelReadWriteCommonBase() [2/2]
◆ isValid()
Returns true, if data was assigned to the ChannelRead or ChannelWrite and if this data is locked.
If this method returns true, you can safely access the underlying data.
If this method returns false, no data was assigned to the ChannelRead / ChannelWrite or the lock on the data was lost. Hence, it is not safe to access the underlying data. If you try to access the data anyway you will get an XRuntime exception.
◆ getChannelID()
const std::string& getChannelID |
( |
| ) |
|
|
inline |
◆ getTypename()
std::string getTypename |
( |
| ) |
const |
|
inline |
◆ getTypeMeta()
◆ getTimestamp()
const Time& getTimestamp |
( |
| ) |
const |
|
inline |
◆ getUseCount()
int getUseCount |
( |
| ) |
const |
|
inline |
Returns the number of shared instances for this data, may be useful for debugging purposes.
◆ getFlags()
uint32 getFlags |
( |
| ) |
const |
|
inline |
For internal use only.
Used by remote components of the framework and by player and recorder. Returns current flags of this slot;
◆ addFlags()
void addFlags |
( |
uint32 |
moreFlags | ) |
const |
|
inline |
For internal use only.
Used by remote components of the framework and by player and recorder. Add additional flags to the slots flags.
◆ checkValid()
void checkValid |
( |
| ) |
const |
|
inlineprotected |
checks if we are still locked, if not it throws a XAccessViolation
◆ readSerializedValue() [1/4]
const Buffer<uint8>& readSerializedValue |
( |
| ) |
|
|
inlineprotected |
◆ readSerializedValue() [2/4]
const Buffer<uint8>& readSerializedValue |
( |
uint8 |
formatVersion, |
|
|
bool |
orLower |
|
) |
| |
|
inlineprotected |
◆ readSerializedValue() [3/4]
Same as above, but allows to specify codecs for serialization.
◆ readSerializedValue() [4/4]
◆ readJSON() [1/2]
◆ readJSON() [2/2]
◆ writeSerializedValue()
void writeSerializedValue |
( |
Buffer< uint8 > |
data | ) |
|
|
inlineprotected |
◆ writeJSON() [1/2]
◆ writeJSON() [2/2]
◆ writeXML()
◆ shared
The documentation for this class was generated from the following file: