MIRA
|
Specialization for untyped channels which just return the StampedHeader as data. More...
#include <fw/ChannelReadWrite.h>
Public Types | |
typedef ChannelReadWriteCommonBase< Derived > | Base |
typedef Base::Shared | Shared |
typedef Base::ChannelTypePtr | ChannelTypePtr |
typedef Base::ValueType | ValueType |
typedef boost::shared_ptr< Shared > | SharedPtr |
typedef Shared::ChannelType | ChannelType |
typedef Shared::Slot | Slot |
Public Member Functions | |
ChannelReadWriteBase () | |
Constructs an empty (invalid) ChannelReadWriteBase object. More... | |
ChannelReadWriteBase (ChannelTypePtr channel, ChannelBufferBase::Slot *slot) | |
Constructs a valid ChannelReadWriteBase object that is assigned to a channel and slot. More... | |
bool | isValid () const |
Returns true, if data was assigned to the ChannelRead or ChannelWrite and if this data is locked. More... | |
const std::string & | getChannelID () |
std::string | getTypename () const |
TypeMetaPtr | getTypeMeta () const |
const Time & | getTimestamp () const |
int | getUseCount () const |
Returns the number of shared instances for this data, may be useful for debugging purposes. More... | |
uint32 | getFlags () const |
For internal use only. More... | |
void | addFlags (uint32 moreFlags) const |
For internal use only. More... | |
Protected Member Functions | |
ValueType & | internalValue () |
Returns a reference on the data. More... | |
const ValueType & | internalValue () const |
Returns a const reference on the data. More... | |
void | checkValid () const |
checks if we are still locked, if not it throws a XAccessViolation More... | |
const Buffer< uint8 > & | readSerializedValue () |
const Buffer< uint8 > & | readSerializedValue (uint8 formatVersion, bool orLower) |
Buffer< uint8 > | readSerializedValue (std::list< BinarySerializerCodecPtr > &codecs) |
Same as above, but allows to specify codecs for serialization. More... | |
Buffer< uint8 > | readSerializedValue (std::list< BinarySerializerCodecPtr > &codecs, uint8 formatVersion, bool orLower) |
void | readJSON (JSONValue &oValue) |
void | readJSON (JSONValue &oValue, JSONSerializer &serializer) |
void | writeSerializedValue (Buffer< uint8 > data) |
void | writeJSON (const JSONValue &value) |
void | writeJSON (JSONDeserializer &deserializer) |
void | writeXML (const XMLDom::const_iterator &node) |
Protected Attributes | |
SharedPtr | shared |
Specialization for untyped channels which just return the StampedHeader as data.
typedef ChannelReadWriteCommonBase<Derived> Base |
typedef Base::Shared Shared |
typedef Base::ChannelTypePtr ChannelTypePtr |
typedef Base::ValueType ValueType |
|
inherited |
|
inherited |
|
inline |
Constructs an empty (invalid) ChannelReadWriteBase object.
|
inline |
Constructs a valid ChannelReadWriteBase object that is assigned to a channel and slot.
|
inlineprotected |
Returns a reference on the data.
Throws | XRuntime, if the lock on the data was lost, e.g. by calling the finish() method |
|
inlineprotected |
Returns a const reference on the data.
Throws | XRuntime, if the lock on the data was lost, e.g. by calling the finish() method |
|
inlineinherited |
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.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns the number of shared instances for this data, may be useful for debugging purposes.
|
inlineinherited |
For internal use only.
Used by remote components of the framework and by player and recorder. Returns current flags of this slot;
|
inlineinherited |
For internal use only.
Used by remote components of the framework and by player and recorder. Add additional flags to the slots flags.
|
inlineprotectedinherited |
checks if we are still locked, if not it throws a XAccessViolation
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Same as above, but allows to specify codecs for serialization.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |