salsa 0.7.1
|
Base salsa actor class. More...
#include <Actor.hh>
Public Member Functions | |
Actor () | |
virtual | ~Actor () |
virtual void | pipe (void *)=0 |
Setter for pipe. | |
virtual int | init ()=0 |
First function. | |
virtual int | exec ()=0 |
Main function. | |
virtual int | finish ()=0 |
Last function. | |
Static Public Member Functions | |
static std::sig_atomic_t | interrupted () |
Returns if salsa is interrupted. | |
static void | interrupted (std::sig_atomic_t sig) |
Setter salsa interruption. | |
static void | signalHandler (int signalNumber) |
Setter salsa interruption. | |
static std::shared_ptr< spdlog::logger > | getConsoleOutput () |
Get console output. | |
static void | setConsoleLevel (spdlog::level::level_enum level) |
Sets console log level. | |
Static Private Attributes | |
static std::sig_atomic_t | msInterrupted = 0 |
flag if salsa is interrupted | |
static std::shared_ptr< spdlog::logger > | mspConsoleLogger = spdlog::stdout_color_mt("salsa") |
Pointer to spd logger. | |
Salsa::Actor::Actor | ( | ) |
Constructor
Definition at line 6 of file Actor.cc.
References Salsa::Object::Object().
Referenced by Salsa::ActorZmq::ActorZmq().
|
pure virtual |
Main function.
Implemented in Salsa::ActorZmq, and Salsa::NodeZyre.
|
pure virtual |
Last function.
Implemented in Salsa::ActorZmq, and Salsa::NodeZyre.
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References mspConsoleLogger.
Referenced by Salsa::ConfigZyre::apply().
|
pure virtual |
First function.
Implemented in Salsa::ActorZmq, and Salsa::NodeZyre.
|
inlinestatic |
Returns if salsa is interrupted.
Definition at line 35 of file Actor.hh.
References msInterrupted.
Referenced by Salsa::ActorZmq::exec(), Salsa::NodeZyre::exec(), Salsa::ActorZmq::SalsaActorFn(), and signalHandler().
|
inlinestatic |
|
pure virtual |
Setter for pipe.
Implemented in Salsa::ActorZmq.
|
inlinestaticinherited |
|
static |
Setter salsa interruption.
Function for handling signals
Definition at line 19 of file Actor.cc.
References interrupted(), and msInterrupted.
Referenced by Salsa::ActorZmq::init().
|
staticprivate |
flag if salsa is interrupted
Definition at line 44 of file Actor.hh.
Referenced by interrupted(), interrupted(), and signalHandler().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by getConsoleOutput(), and setConsoleLevel().