salsa  0.4.15
Salsa::PublisherZmq Class Reference

Base PublisherZmq class. More...

#include <PublisherZmq.hh>

Inheritance diagram for Salsa::PublisherZmq:
Salsa::Publisher Salsa::Object

Public Member Functions

 PublisherZmq (std::string url=">tcp://localhost:1234")
 
virtual ~PublisherZmq ()
 
virtual void publish (std::string id, std::string name, std::string data)
 Publish TODO publish what? More...
 
std::string url () const
 Returns url.
 

Static Public Member Functions

static std::shared_ptr< spdlog::logger > getConsoleOutput ()
 Get console output.
 
static void setConsoleLevel (spdlog::level::level_enum level)
 Sets console log level.
 

Protected Attributes

std::string mURL
 Url to publish.
 

Private Attributes

zsock_t * mpSocket = nullptr
 Socket that... does stuff...
 

Static Private Attributes

static std::shared_ptr< spdlog::logger > mspConsoleLogger = spdlog::stdout_color_mt("salsa")
 Pointer to spd logger.
 

Detailed Description

Constructor & Destructor Documentation

◆ PublisherZmq()

Salsa::PublisherZmq::PublisherZmq ( std::string  url = ">tcp://localhost:1234")

Constructor

Definition at line 4 of file PublisherZmq.cc.

References mpSocket, and Salsa::Publisher::url().

◆ ~PublisherZmq()

Salsa::PublisherZmq::~PublisherZmq ( )
virtual

Destructor

Definition at line 12 of file PublisherZmq.cc.

References mpSocket.

Member Function Documentation

◆ publish()

void Salsa::PublisherZmq::publish ( std::string  id,
std::string  name,
std::string  data 
)
virtual

Publish TODO publish what?

Publish function

Implements Salsa::Publisher.

Definition at line 21 of file PublisherZmq.cc.

References mpSocket.


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