1#ifndef Cpl_TShell_Cmd_Command_h_
2#define Cpl_TShell_Cmd_Command_h_
15#include "colony_config.h"
21#ifndef OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL
22#define OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL Cpl::TShell::Security::ePUBLIC
#define OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL
Default Permission level for all commands.
Definition Command.h:22
This template class implements a THREAD SAFE Ring Buffer.
Definition RingBufferMT.h:33
This partially concrete class implements infrastructure and/or common functionality for a Shell comma...
Definition Command.h:37
Security::Permission_T getMinPermissionRequired() const noexcept
See Cpl::TShell::Command.
const char * getVerb() const noexcept
See Cpl::TShell::Command.
const char * m_verb
Command verb.
Definition Command.h:49
Security::Permission_T m_minPermissionLevel
Minimum required user permission need to execute me.
Definition Command.h:52
CondResult_T
Result when processing a conditional statement.
Definition Command.h:41
@ eFALSE
The conditional statement evaluated to false.
Definition Command.h:42
@ eTRUE
The conditional statement evaluated to true.
Definition Command.h:43
@ eERROR
Error occurring during the evaluation of the conditional.
Definition Command.h:44
Command(Cpl::Container::SList< Cpl::TShell::Command > &commandList, const char *verb, Security::Permission_T minPermLevel=OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL) noexcept
Constructor.
This class defines the interface for a TShell command.
Definition Command.h:32
This abstract defines the interface for validating a 'user login' for TShell.
Definition Security.h:31
Permission_T
Permissions levels.
Definition Security.h:34
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20