Class for grouping publications in the Goby middleware. Analogous to "topics" in ROS, "channel" in LCM, or "variable" in MOOS.
More...
#include <goby/middleware/group.h>
|
static constexpr std::uint32_t | broadcast_group {0} |
| Special group number representing the broadcast group (used when no grouping is required for a given type) More...
|
|
static constexpr std::uint32_t | invalid_numeric_group {std::numeric_limits<std::uint32_t>::max()} |
| Special group number representing an invalid numeric group (unsuitable for intervehicle and outer layers) More...
|
|
static constexpr std::uint32_t | maximum_valid_group |
|
Class for grouping publications in the Goby middleware. Analogous to "topics" in ROS, "channel" in LCM, or "variable" in MOOS.
A Group is defined by a string and possibly also an integer value (when used on intervehicle and outer layers). For interprocess and inner layers, the string value is used (and the integer value is optional). For intervehicle and outer layers, the integer value is used to minimizing wire size over these restricted links.
Group is intended to instantiated as a compile-time constant (constexpr
), e.g.
Class for grouping publications in the Goby middleware. Analogous to "topics" in ROS,...
Definition at line 58 of file group.h.
◆ Group() [1/2]
Construct a group with a (C-style) string and possibly a numeric value (when this Group will be used on intervehicle and outer layers).
Definition at line 70 of file group.h.
◆ Group() [2/2]
Construct a group with only a numeric value.
Definition at line 73 of file group.h.
◆ c_str()
constexpr const char* goby::middleware::Group::c_str |
( |
| ) |
const |
|
inlineconstexpr |
Access the group's string value as a C string.
Definition at line 79 of file group.h.
◆ numeric()
constexpr std::uint32_t goby::middleware::Group::numeric |
( |
| ) |
const |
|
inlineconstexpr |
Access the group's numeric value.
Definition at line 76 of file group.h.
◆ operator std::string()
goby::middleware::Group::operator std::string |
( |
| ) |
const |
|
inline |
Access the group's string value as a C++ string.
Definition at line 82 of file group.h.
◆ set_c_str()
void goby::middleware::Group::set_c_str |
( |
const char * |
c | ) |
|
|
inlineprotected |
◆ broadcast_group
constexpr std::uint32_t goby::middleware::Group::broadcast_group {0} |
|
staticconstexpr |
Special group number representing the broadcast group (used when no grouping is required for a given type)
Definition at line 62 of file group.h.
◆ invalid_numeric_group
constexpr std::uint32_t goby::middleware::Group::invalid_numeric_group {std::numeric_limits<std::uint32_t>::max()} |
|
staticconstexpr |
Special group number representing an invalid numeric group (unsuitable for intervehicle and outer layers)
Definition at line 64 of file group.h.
◆ maximum_valid_group
constexpr std::uint32_t goby::middleware::Group::maximum_valid_group |
|
staticconstexpr |
Initial value:{std::numeric_limits<std::uint32_t>::max() -
1}
Definition at line 66 of file group.h.
The documentation for this class was generated from the following file: