1#ifndef Cpl_Dm_TShell_Dm_h 
    2#define Cpl_Dm_TShell_Dm_h 
   15#include "colony_config.h" 
   39    static constexpr const char* 
usage = 
"dm ls [<filter>]\n"  
   40                                         "dm write {<mp-json>}\n"  
   48    static constexpr const char* 
detailedHelp = 
"  Lists, updates, and displays Model Points contained in the Model Database.\n"  
   49                                                "  When 'ls' is used a list of model point names is returned.  The <filter>\n"  
   50                                                "  argument will only list points that contain <filter>.  Updating a Model Point\n"  
   51                                                "  is done by specifying a JSON object. See the concrete class definition of the\n"  
   52                                                "  Model Point being updated for the JSON format.  When displaying a Model Point\n"  
   53                                                "  <mpname> is the string name of the Model Point instance to be displayed.";
 
   73        const char*                                 cmdNameAndDatabaseNumber=
"dm",
 
#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 class defines the basic operations that can be performed on a Model Base.
Definition ModelDatabaseApi.h:32
 
This class implements a TShell command.
Definition Dm.h:36
 
static constexpr const char * detailedHelp
The command detailed help string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 1234...
Definition Dm.h:48
 
const char * getHelp() const noexcept
See Cpl::TShell::Command.
Definition Dm.h:66
 
Dm(Cpl::Container::SList< Cpl::TShell::Command > &commandList, Cpl::Dm::ModelDatabaseApi &modelDatabase, const char *cmdNameAndDatabaseNumber="dm", Cpl::TShell::Security::Permission_T minPermLevel=OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL) noexcept
Constructor.
 
const char * getUsage() const noexcept
Dynamic.
Definition Dm.h:63
 
Cpl::TShell::Command::Result_T execute(Cpl::TShell::Context_ &context, char *cmdString, Cpl::Io::Output &outfd) noexcept
See Cpl::TShell::Command.
 
Cpl::Dm::ModelDatabaseApi & m_database
Model Point Database to access.
Definition Dm.h:58
 
static constexpr const char * usage
The command usage string.
Definition Dm.h:39
 
This partially abstract class defines a interface for operating on an output stream (example of a str...
Definition Output.h:34
 
This partially concrete class implements infrastructure and/or common functionality for a Shell comma...
Definition Command.h:37
 
Result_T
Possible result codes when executing a command.
Definition Command.h:35
 
This Private Namespace class defines a "Context" for a TShell command.
Definition Context_.h:32
 
Permission_T
Permissions levels.
Definition Security.h:34
 
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20