salsa 0.7.1
Loading...
Searching...
No Matches
Salsa::Publisher Class Referenceabstract

Base Publisher class. More...

#include <Publisher.hh>

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

Public Member Functions

 Publisher (std::string url="")
 
virtual ~Publisher ()
 
virtual void publish (std::string id, std::string name, std::string data, bool force=true)=0
 Publish TODO publish what?
 
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.
 

Static Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ Publisher()

Salsa::Publisher::Publisher ( std::string url = "")

Constructor

Definition at line 4 of file Publisher.cc.

◆ ~Publisher()

Salsa::Publisher::~Publisher ( )
virtual

Destructor

Definition at line 10 of file Publisher.cc.

Member Function Documentation

◆ getConsoleOutput()

static std::shared_ptr< spdlog::logger > Salsa::Object::getConsoleOutput ( )
inlinestaticinherited

Get console output.

Definition at line 21 of file Object.hh.

References Salsa::Object::mspConsoleLogger.

Referenced by Salsa::ConfigZyre::apply().

◆ publish()

virtual void Salsa::Publisher::publish ( std::string id,
std::string name,
std::string data,
bool force = true )
pure virtual

Publish TODO publish what?

Implemented in Salsa::PublisherZmq.

Referenced by Salsa::NodeManager::publish().

◆ setConsoleLevel()

static void Salsa::Object::setConsoleLevel ( spdlog::level::level_enum level)
inlinestaticinherited

Sets console log level.

Definition at line 29 of file Object.hh.

References Salsa::Object::mspConsoleLogger.

◆ url()

std::string Salsa::Publisher::url ( ) const
inline

Returns url.

Definition at line 23 of file Publisher.hh.

References mURL.

Referenced by Salsa::PublisherZmq::PublisherZmq().

Member Data Documentation

◆ mspConsoleLogger

std::shared_ptr< spdlog::logger > Salsa::Object::mspConsoleLogger = spdlog::stdout_color_mt("salsa")
staticprivateinherited

Pointer to spd logger.

Definition at line 32 of file Object.hh.

Referenced by Salsa::Object::getConsoleOutput(), and Salsa::Object::setConsoleLevel().

◆ mURL

std::string Salsa::Publisher::mURL
protected

Url to publish.

Definition at line 26 of file Publisher.hh.

Referenced by url().


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