Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig > Class Template Reference

PubSubTestEndpoint on the intervehicle layer: an InterVehicleForwarder over an interprocess portal, so traffic goes through that portal's gobyd and its intervehicle links, as an application's would. More...

#include <goby/middleware/tool/pubsub_test.h>

Inheritance diagram for goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >:
goby::middleware::tool::PubSubTestEndpoint

Public Member Functions

 PubSubTestInterVehicleEndpoint (std::string name, const PortalConfig &cfg)
 
const std::string & name () const override
 
bool intervehicle () const override
 
void publish (const protobuf::PubSubTestPublish &pub) override
 
void publish_health_request () override
 
void subscribe_all (MessageHandler handler) override
 
void arm (const protobuf::PubSubTestExpect &exp) override
 Called for each expectation on this endpoint once require_app has passed, before the runs start (for layers that subscribe per type and group)
 
void ready () override
 
bool hold_state () override
 
void poll (std::chrono::milliseconds wait) override
 
- Public Member Functions inherited from goby::middleware::tool::PubSubTestEndpoint
virtual ~PubSubTestEndpoint ()=default
 

Additional Inherited Members

- Public Types inherited from goby::middleware::tool::PubSubTestEndpoint
using Clock = std::chrono::steady_clock
 
using MessageHandler = std::function< void(const PubSubTestMessage &)>
 

Detailed Description

template<typename Portal, typename PortalConfig>
class goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >

PubSubTestEndpoint on the intervehicle layer: an InterVehicleForwarder over an interprocess portal, so traffic goes through that portal's gobyd and its intervehicle links, as an application's would.

Received messages are reported with scheme DCCL and the numeric group as the group name. Acks and expiries of this endpoint's publications are reported as PROTOBUF AckData and ExpireData in the publication's group.

Definition at line 474 of file pubsub_test.h.

Constructor & Destructor Documentation

◆ PubSubTestInterVehicleEndpoint()

template<typename Portal , typename PortalConfig >
goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::PubSubTestInterVehicleEndpoint ( std::string  name,
const PortalConfig &  cfg 
)
inline

Definition at line 477 of file pubsub_test.h.

Member Function Documentation

◆ arm()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::arm ( const protobuf::PubSubTestExpect &  )
inlineoverridevirtual

Called for each expectation on this endpoint once require_app has passed, before the runs start (for layers that subscribe per type and group)

Reimplemented from goby::middleware::tool::PubSubTestEndpoint.

Definition at line 552 of file pubsub_test.h.

◆ hold_state()

template<typename Portal , typename PortalConfig >
bool goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::hold_state ( )
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 595 of file pubsub_test.h.

◆ intervehicle()

template<typename Portal , typename PortalConfig >
bool goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::intervehicle ( ) const
inlineoverridevirtual

Reimplemented from goby::middleware::tool::PubSubTestEndpoint.

Definition at line 483 of file pubsub_test.h.

◆ name()

template<typename Portal , typename PortalConfig >
const std::string & goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::name ( ) const
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 482 of file pubsub_test.h.

◆ poll()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::poll ( std::chrono::milliseconds  wait)
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 596 of file pubsub_test.h.

◆ publish()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::publish ( const protobuf::PubSubTestPublish &  pub)
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 485 of file pubsub_test.h.

◆ publish_health_request()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::publish_health_request ( )
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 534 of file pubsub_test.h.

◆ ready()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::ready ( )
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 594 of file pubsub_test.h.

◆ subscribe_all()

template<typename Portal , typename PortalConfig >
void goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >::subscribe_all ( MessageHandler  handler)
inlineoverridevirtual

Implements goby::middleware::tool::PubSubTestEndpoint.

Definition at line 541 of file pubsub_test.h.


The documentation for this class was generated from the following file: