salsa 0.7.1
|
#include <Publisher.hh>
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. | |
Base Publisher class.
Definition at line 14 of file Publisher.hh.
Salsa::Publisher::Publisher | ( | std::string | url = "" | ) |
Constructor
Definition at line 4 of file Publisher.cc.
References mURL, Salsa::Object::Object(), and url().
Referenced by Salsa::PublisherZmq::PublisherZmq().
|
virtual |
Destructor
Definition at line 10 of file Publisher.cc.
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References mspConsoleLogger.
Referenced by Salsa::ConfigZyre::apply().
|
pure virtual |
Publish TODO publish what?
Implemented in Salsa::PublisherZmq.
|
inlinestaticinherited |
|
inline |
Returns url.
Definition at line 23 of file Publisher.hh.
References mURL.
Referenced by Publisher(), and Salsa::PublisherZmq::PublisherZmq().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by getConsoleOutput(), and setConsoleLevel().
|
protected |