salsa 0.7.1
Loading...
Searching...
No Matches
Salsa::TaskExecutorFake Class Reference

TaskExecutorFake class. More...

#include <TaskExecutorFake.hh>

Inheritance diagram for Salsa::TaskExecutorFake:
Salsa::TaskExecutor Salsa::Object

Public Member Functions

 TaskExecutorFake (TaskPool *pTP)
 
virtual ~TaskExecutorFake ()
 
virtual bool run (std::string, std::string)
 Run task.
 
virtual void * pipe () const
 
virtual bool handlePipe (std::vector< std::string > &extra)
 Handle pipe.
 
void taskState (TaskState *pTS)
 
TaskStatetaskState () const
 

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

TaskStatempTaskState = nullptr
 Task state.
 

Private Attributes

ObjectmpPointer {new Object()}
 Fake pointer.
 
std::string mWorker {}
 Worker.
 
std::string mUpstream {}
 Upstream.
 
TaskPoolmpTaskPool = nullptr
 Fake pointer.
 

Static Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ TaskExecutorFake()

Salsa::TaskExecutorFake::TaskExecutorFake ( TaskPool * pTP)

Constructor

Definition at line 4 of file TaskExecutorFake.cc.

◆ ~TaskExecutorFake()

Salsa::TaskExecutorFake::~TaskExecutorFake ( )
virtual

Destructor

Definition at line 10 of file TaskExecutorFake.cc.

References mpPointer.

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().

◆ handlePipe()

bool Salsa::TaskExecutorFake::handlePipe ( std::vector< std::string > & )
virtual

Handle pipe.

Handle pipe

Implements Salsa::TaskExecutor.

Definition at line 29 of file TaskExecutorFake.cc.

References mUpstream, and mWorker.

◆ pipe()

void * Salsa::TaskExecutorFake::pipe ( ) const
virtual

Returns pipe

Reimplemented from Salsa::TaskExecutor.

Definition at line 41 of file TaskExecutorFake.cc.

References mpPointer.

◆ run()

bool Salsa::TaskExecutorFake::run ( std::string ,
std::string  )
virtual

◆ 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.

◆ taskState() [1/2]

TaskState * Salsa::TaskExecutor::taskState ( ) const
inherited

Returns task state

Definition at line 30 of file TaskExecutor.cc.

References Salsa::TaskExecutor::mpTaskState.

◆ taskState() [2/2]

void Salsa::TaskExecutor::taskState ( TaskState * pTS)
inherited

Sets task state

Definition at line 22 of file TaskExecutor.cc.

References Salsa::TaskExecutor::mpTaskState.

Referenced by Salsa::NodeManagerZyre::addTaskSlot().

Member Data Documentation

◆ mpPointer

Object* Salsa::TaskExecutorFake::mpPointer {new Object()}
private

Fake pointer.

Definition at line 25 of file TaskExecutorFake.hh.

Referenced by pipe(), run(), and ~TaskExecutorFake().

◆ mpTaskPool

TaskPool* Salsa::TaskExecutorFake::mpTaskPool = nullptr
private

Fake pointer.

Definition at line 28 of file TaskExecutorFake.hh.

Referenced by run().

◆ mpTaskState

TaskState* Salsa::TaskExecutor::mpTaskState = nullptr
protectedinherited

◆ 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().

◆ mUpstream

std::string Salsa::TaskExecutorFake::mUpstream {}
private

Upstream.

Definition at line 27 of file TaskExecutorFake.hh.

Referenced by handlePipe(), and run().

◆ mWorker

std::string Salsa::TaskExecutorFake::mWorker {}
private

Worker.

Definition at line 26 of file TaskExecutorFake.hh.

Referenced by handlePipe(), and run().


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