Class GsofClient

Nested Relationships

Nested Types

Class Documentation

class GsofClient

This client is meant to connect to products communicating using Trimble’s Trimcomm/GSOF packets over TCP.

Public Types

using MessageCallback = std::function<void(const gsof::Message&)>

Public Functions

GsofClient() = delete
GsofClient(const std::string &ip_address, unsigned int port)
~GsofClient()
GsofClient(const GsofClient&) = delete
GsofClient &operator=(const GsofClient&) = delete
util::Status start()
void stop()
std::vector<MessageCallback>::iterator registerCallback(gsof::Id id, const MessageCallback &callback)

Protected Functions

template<typename GsofMessageParser>
void gsofChapterCallback(const std::vector<std::byte> &chapter)

Protected Attributes

gsof::StreamChapterParser gsof_stream_parser_
struct unsupported_callback_error : public std::runtime_error

Public Functions

inline unsupported_callback_error()