ConOpSys V2970
P004.07
ANVILEX control operating system
|
ConOpSys terminal command base class. More...
#include <Command_Base.h>
Classes | |
struct | TCommand_Descriptor |
Command descriptor structure. More... | |
Public Member Functions | |
TCommand_Base (TCommand_Descriptor *struct_Descriptor) | |
Class constructor method. More... | |
virtual | ~TCommand_Base () |
Class distructor method. More... | |
BOOL | Is_Command_Name (C8 *c8_Command_String) |
Test command name. More... | |
virtual VOID | Execute (TProtocol_Base *object_Protocol) |
Execute command method. More... | |
VOID | Send_Information (TProtocol_Base *object_Protocol) |
Send information about cpecific command over communication link protocol. More... | |
Private Attributes | |
TCommand_Descriptor * | struct_Descriptor |
Command descriptor storage. More... | |
ConOpSys terminal command base class.
TCommand_Base::TCommand_Base | ( | TCommand_Descriptor * | struct_Descriptor | ) |
Class constructor method.
[in] | *struct_Descriptor | - Pointer to the command description |
References struct_Descriptor.
|
virtual |
Class distructor method.
|
virtual |
Execute command method.
[in] | *object_Protocol | - Pointer to the communication link protocol |
false | - Command execution failed |
true | - Command execution successfull |
Reimplemented in TCommand_TERMINAL, TCommand_STATUS, TCommand_STACK, TCommand_SCOPE_STATUS, TCommand_SCOPE_FORCE, TCommand_SCOPE_ARM, TCommand_SCOPE, TCommand_RTC, TCommand_RESTART, TCommand_RESET, TCommand_PROTOCOL, TCommand_PARAMETERS, TCommand_NVRAM_STATUS, TCommand_NVRAM_FORMAT, TCommand_NVRAM, TCommand_MEMORY, TCommand_INFO, TCommand_HELP, TCommand_HEAP, TCommand_FSM, TCommand_FPGA, TCommand_FLASH_FORMAT, TCommand_FLASH, TCommand_EVENTS, TCommand_ETHERNET, TCommand_ENABLE, TCommand_DISABLE, TCommand_CONTACT, TCommand_COM3, TCommand_COM2, TCommand_COM1, TCommand_COM0, TCommand_CAN, TCommand_APPLICATION, and TCommand_ANYBUS.
Referenced by TCommand_Manager::Execute().
Test command name.
[in] | *c8_Command_String | - Pointer to the command string |
false | - Command not queal |
true | - Command not queal |
References TCommand_Base::TCommand_Descriptor::c8_Command_Name, and struct_Descriptor.
Referenced by TCommand_Manager::Execute().
VOID TCommand_Base::Send_Information | ( | TProtocol_Base * | object_Protocol | ) |
Send information about cpecific command over communication link protocol.
[in] | *object_Protocol | - Pointer to the communication link protocol |
References TCommand_Base::TCommand_Descriptor::c8_Command_Description, TCommand_Base::TCommand_Descriptor::c8_Command_Name, NULL, struct_Descriptor, and TProtocol_Base::Transmit_String().
Referenced by TCommand_HELP::Execute().
|
private |
Command descriptor storage.
Referenced by Is_Command_Name(), Send_Information(), and TCommand_Base().