|
VLink 2.0.0
A high-performance communication middleware
|
Type-safe event-model publisher for VLink topics. More...
#include <memory>#include <string>#include "./impl/publisher_impl.h"#include "./node.h"#include "./internal/publisher-inl.h"Go to the source code of this file.
Classes | |
| class | vlink::Publisher< MsgT, SecT > |
| Type-safe publisher for the VLink event communication model. More... | |
| class | vlink::SecurityPublisher< MsgT > |
Convenience alias for Publisher with message security enabled. More... | |
Namespaces | |
| namespace | vlink |
Type-safe event-model publisher for VLink topics.
Publisher<MsgT, SecT> is the write side of the VLink event model. It serialises a MsgT object and delivers it to all Subscriber nodes that share the same URL.
| Category | Type | Serializer |
|---|---|---|
| Raw bytes | Bytes | kBytesType |
| Protobuf | MyProto (MessageLite) | kProtoType |
| Protobuf ptr | MyProto* (Arena-managed) | kProtoPtrType |
| FlatBuffers | MyTableT (NativeTable) | kFlatTableType |
| FlatBuffers | MyBuilder (has fbb_+Finish) | kFlatBuilderType |
| CDR (DDS only) | MyCdrType (serialize/des.) | kCdrType |
| Standard layout | POD struct / trivial type | kStandardType |
| String | std::string | kStringType |
| Custom | T (has operator>>/<<) | kCustomType |
force = true to publish() to send even when no subscribers are present (e.g. for guaranteed-delivery or field-mode semantics).| MsgT | Message type. Must satisfy Serializer::is_supported(). |
| SecT | Security mode; defaults to SecurityType::kWithoutSecurity. |