24#ifndef GOBY_MIDDLEWARE_LANGUAGES_COMMON_INTERFACE_H
25#define GOBY_MIDDLEWARE_LANGUAGES_COMMON_INTERFACE_H
91inline std::ostream& operator<<(std::ostream& os,
const Identifier& i)
95 <<
", group: \"" << i.
group <<
"\"");
99template <
typename DataType,
int scheme>
102 std::vector<char> out =
104 return std::vector<std::uint8_t>(out.begin(), out.end());
std::string to_string(PubSubLayer layer)
Converts a PubSubLayer to the layer name used in interface.yml.
bool operator!=(const Identifier &i1, const Identifier &i2)
std::vector< std::uint8_t > serialize_uint8(const DataType &msg)
Marshals a message using the given scheme, returning the bytes to hand to the bound language.
bool operator==(const Identifier &i1, const Identifier &i2)
PubSubLayer
The publish/subscribe layer used for a given publication or subscription.
The global namespace for the Goby project.
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::GobyMessageOptions >, 11, false > msg
static std::string to_string(int e)
Convert a known marshalling scheme to a human-readable string or an unknown scheme to the string repr...
static std::vector< char > serialize(const DataType &)
Given data, produce a vector of bytes.
Fully identifies a publication or subscription crossing the language boundary.