![]() |
GM6000 Digital Heater Controller Build: 16 (Branch = develop)
SDX-1330
|
This class implements a Shell command. More...
This class implements a Shell command.
#include <Threads.h>
Public Member Functions | |
const char * | getUsage () const noexcept |
See Cpl::TShell::Command. | |
const char * | getHelp () const noexcept |
See Cpl::TShell::Command. | |
Threads (Cpl::Container::SList< Cpl::TShell::Command > &commandList, Security::Permission_T minPermLevel=OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL) noexcept | |
Constructor. | |
Cpl::TShell::Command::Result_T | execute (Cpl::TShell::Context_ &context, char *cmdString, Cpl::Io::Output &outfd) noexcept |
See Cpl::TShell::Command. | |
Cpl::Type::Traverser::Status_T | item (Cpl::System::Thread &nextThread) |
See Cpl::System::Thread::Traverser. | |
![]() | |
const char * | getVerb () const noexcept |
See Cpl::TShell::Command. | |
Security::Permission_T | getMinPermissionRequired () const noexcept |
See Cpl::TShell::Command. | |
![]() | |
virtual | ~Command () |
Virtual destructor. | |
![]() | |
bool | insert_ (void *newContainerPtr) |
Helper method to trap when inserting an item in multiple containers. | |
bool | isInContainer_ (const void *containerPtr) const noexcept |
Returns 'true' if the instance is in the specified container. | |
![]() | |
virtual | ~Traverser () |
Virtual Destructor. | |
Static Public Attributes | |
static constexpr const char * | verb = "threads" |
The command verb/identifier. | |
static constexpr const char * | usage = "threads" |
The command usage string. | |
static constexpr const char * | detailedHelp = " Displays the list of threads." |
The command detailed help string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890. | |
Protected Member Functions | |
virtual void | hookHeader1 (Cpl::Text::String &text) |
Hook when generating list header1 (i.e. subclass appends to the String) | |
virtual void | hookHeader2 (Cpl::Text::String &text) |
Hook when generating list header2 (i.e. subclass appends to the String) | |
virtual void | hookThreadEntry (Cpl::Text::String &text, Cpl::System::Thread ¤tThread) |
Hook when generating a thread row entry (i.e. subclass appends to the String) | |
![]() | |
Command (Cpl::Container::SList< Cpl::TShell::Command > &commandList, const char *verb, Security::Permission_T minPermLevel=OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL) noexcept | |
Constructor. | |
![]() | |
Command () | |
Constructor. | |
![]() | |
Item () | |
Constructor. | |
Item (const char *) | |
Constructor used ONLY with the child class MapItem: -->special constructor to allow a Map to be statically allocated. | |
Protected Attributes | |
Cpl::TShell::Context_ * | m_contextPtr |
Cache my Processor/Shell context when traversing the thread list. | |
unsigned | m_count |
Count of threads. | |
bool | m_io |
Cache IO status/errors. | |
![]() | |
const char * | m_verb |
Command verb. | |
Security::Permission_T | m_minPermissionLevel |
Minimum required user permission need to execute me. | |
Additional Inherited Members | |
![]() | |
enum | Result_T { eSUCCESS = 0 , eERROR_BAD_SYNTAX = 1 , eERROR_INVALID_CMD = 2 , eERROR_IO = 3 , eERROR_MISSING_ARGS = 4 , eERROR_EXTRA_ARGS = 5 , eERROR_INVALID_ARGS = 6 , eERROR_FAILED = 7 } |
Possible result codes when executing a command. More... | |
![]() | |
static void | remove_ (Item *itemPtr) noexcept |
Helper method to do the proper 'clean-up' for the multiple-containers-error-trap when removing an item from a container. | |
![]() | |
void * | m_nextPtr_ |
The link field. | |
void * | m_inListPtr_ |
Debug field. | |
![]() | |
enum | CondResult_T { eFALSE , eTRUE , eERROR } |
Result when processing a conditional statement. More... | |
|
noexcept |
Constructor.
|
virtualnoexcept |
See Cpl::TShell::Command.
Implements Cpl::TShell::Command.
|
inlinevirtualnoexcept |
See Cpl::TShell::Command.
Implements Cpl::TShell::Command.
|
inlinevirtualnoexcept |
See Cpl::TShell::Command.
Implements Cpl::TShell::Command.
|
protectedvirtual |
Hook when generating list header1 (i.e. subclass appends to the String)
Reimplemented in Cpl::TShell::Cmd::FreeRTOS::Threads, and Cpl::TShell::Cmd::Win32::Threads.
|
protectedvirtual |
Hook when generating list header2 (i.e. subclass appends to the String)
Reimplemented in Cpl::TShell::Cmd::FreeRTOS::Threads, and Cpl::TShell::Cmd::Win32::Threads.
|
protectedvirtual |
Hook when generating a thread row entry (i.e. subclass appends to the String)
Reimplemented in Cpl::TShell::Cmd::FreeRTOS::Threads, and Cpl::TShell::Cmd::Win32::Threads.
|
virtual |
See Cpl::System::Thread::Traverser.
Implements Cpl::System::Thread::Traverser.
|
staticconstexpr |
The command detailed help string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890.
|
protected |
Cache my Processor/Shell context when traversing the thread list.
|
protected |
Count of threads.
|
protected |
Cache IO status/errors.
|
staticconstexpr |
The command usage string.
|
staticconstexpr |
The command verb/identifier.