Fawkes API
Fawkes Development Version
|
Interface adapter to provide logging facilities. More...
#include <log_adapter.h>
Public Member Functions | |
LoggingPlexilAdapter (PLEXIL::AdapterExecInterface &execInterface) | |
Constructor. More... | |
LoggingPlexilAdapter (PLEXIL::AdapterExecInterface &execInterface, pugi::xml_node const xml) | |
Constructor from configuration XML. More... | |
virtual | ~LoggingPlexilAdapter () |
Destructor. More... | |
virtual bool | initialize () |
Initialize adapter. More... | |
virtual bool | start () |
Start adapter. More... | |
virtual bool | stop () |
Stop adapter. More... | |
virtual bool | reset () |
Reset adapter. More... | |
virtual bool | shutdown () |
Shut adapter down. More... | |
void | executeCommand (PLEXIL::Command *cmd) |
Perform given command. More... | |
void | invokeAbort (PLEXIL::Command *cmd) |
Abort currently running execution. More... | |
Interface adapter to provide logging facilities.
Plexil adapter to provide logging facilities.
Definition at line 30 of file log_adapter.h.
LoggingPlexilAdapter::LoggingPlexilAdapter | ( | PLEXIL::AdapterExecInterface & | execInterface | ) |
Constructor.
execInterface | Reference to the parent AdapterExecInterface object. |
Definition at line 40 of file log_adapter.cpp.
LoggingPlexilAdapter::LoggingPlexilAdapter | ( | PLEXIL::AdapterExecInterface & | execInterface, |
pugi::xml_node const | xml | ||
) |
Constructor from configuration XML.
execInterface | Reference to the parent AdapterExecInterface object. |
xml | A const reference to the XML element describing this adapter |
Definition at line 50 of file log_adapter.cpp.
|
virtual |
Destructor.
Definition at line 57 of file log_adapter.cpp.
void LoggingPlexilAdapter::executeCommand | ( | PLEXIL::Command * | cmd | ) |
Perform given command.
cmd | command to execute |
Definition at line 150 of file log_adapter.cpp.
References fawkes::Logger::log_debug(), fawkes::Logger::log_error(), fawkes::Logger::log_info(), and fawkes::Logger::log_warn().
|
virtual |
Initialize adapter.
Definition at line 65 of file log_adapter.cpp.
void LoggingPlexilAdapter::invokeAbort | ( | PLEXIL::Command * | cmd | ) |
Abort currently running execution.
cmd | command to abort |
Definition at line 206 of file log_adapter.cpp.
|
virtual |
Reset adapter.
Definition at line 105 of file log_adapter.cpp.
|
virtual |
Shut adapter down.
Definition at line 114 of file log_adapter.cpp.
|
virtual |
Start adapter.
Definition at line 87 of file log_adapter.cpp.
|
virtual |
Stop adapter.
Definition at line 96 of file log_adapter.cpp.