Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::AgentTopicInfo Struct Reference

One mads.ini agent section's topics. More...

#include <topology_graph.hpp>

Public Attributes

std::string pub_topic
 
std::vector< std::string > sub_topic
 
bool pub_implicit = false
 

Detailed Description

One mads.ini agent section's topics.

Definition at line 31 of file topology_graph.hpp.

Member Data Documentation

◆ pub_implicit

bool Mads::AgentTopicInfo::pub_implicit = false

True when pub_topic was not declared in the settings file and was filled in with the section's own name, mirroring Agent's own cfg["pub_topic"].value_or(_name) default. Such a topic still produces real edges – a filter that never declares pub_topic genuinely publishes under its section name – but it is drawn muted and is never reported as a dangling publisher, since a pure sink gets the same default and nobody listening to it is normal, not a misconfiguration.

Definition at line 48 of file topology_graph.hpp.

◆ pub_topic

std::string Mads::AgentTopicInfo::pub_topic

The topic this section publishes on. Empty means the section publishes nothing at all; see pub_implicit for the (common) case of a section that declares no pub_topic key but still publishes at runtime.

Definition at line 35 of file topology_graph.hpp.

◆ sub_topic

std::vector<std::string> Mads::AgentTopicInfo::sub_topic

Empty means no sub_topic key (no subscriptions). A single empty-string entry (sub_topic = [""]) is the subscribe-all convention used throughout MADS (see Agent::connect_sub()) and is rendered/matched accordingly.

Definition at line 40 of file topology_graph.hpp.


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