salsa 0.7.1
|
Base PublisherZmq class. More...
#include <PublisherZmq.hh>
Public Member Functions | |
PublisherZmq (std::string url=">tcp://localhost:1234") | |
virtual | ~PublisherZmq () |
virtual void | publish (std::string id, std::string name, std::string data, bool forcePublish=false) |
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. | |
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. | |
Base PublisherZmq class.
Definition at line 17 of file PublisherZmq.hh.
Salsa::PublisherZmq::PublisherZmq | ( | std::string | url = ">tcp://localhost:1234" | ) |
Constructor
Definition at line 4 of file PublisherZmq.cc.
References mpSocket, and Salsa::Publisher::url().
|
virtual |
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
Referenced by Salsa::ConfigZyre::apply().
|
virtual |
Publish TODO publish what?
Publish function
Implements Salsa::Publisher.
Definition at line 22 of file PublisherZmq.cc.
References mpSocket.
|
inlinestaticinherited |
Sets console log level.
Definition at line 29 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
|
inlineinherited |
Returns url.
Definition at line 23 of file Publisher.hh.
References Salsa::Publisher::mURL.
Referenced by PublisherZmq().
|
private |
Socket that... does stuff...
Definition at line 25 of file PublisherZmq.hh.
Referenced by publish(), PublisherZmq(), and ~PublisherZmq().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by Salsa::Object::getConsoleOutput(), and Salsa::Object::setConsoleLevel().
|
protectedinherited |