ConOpSys V2970
P004.07
ANVILEX control operating system
|
ConOpSys terminal command manager base class. More...
#include <Command_Manager_Base.h>
Public Member Functions | |
TCommand_Manager_Base () | |
Class constructor method. More... | |
virtual | ~TCommand_Manager_Base () |
Class destructor method. More... | |
virtual VOID | Init () |
Command manager initialisation method. More... | |
virtual VOID | Done () |
Command manager finalisation method. More... | |
virtual BOOL | Get_Index (U32 *u32_Storage_Index, TCommand_Base *object_Command) |
Get command object index referenced by command object pointer. More... | |
virtual BOOL | Get_Command_By_Storage_Index (U32 u32_Storage_Index, TCommand_Base **object_Command) |
Get pointer to the command object referenced by command manager storage index. More... | |
virtual BOOL | Is_Registered (TCommand_Base *object_Command) |
Test for command registered in command manager. More... | |
virtual BOOL | Register (TCommand_Base *object_Command) |
Performs registration of the command in command manager. More... | |
virtual BOOL | Unregister (TCommand_Base *object_Command) |
Performs unregistration of the command in command manager. More... | |
virtual BOOL | Execute (C8 *c8_Command_String, TProtocol_Base *object_Protocol) |
Execute command method. More... | |
virtual U32 | Get_Command_Count () |
Get command count registered in command manager. More... | |
virtual VOID | Get_Usage (U32 *u32_Command_Capacity, U32 *u32_Command_Count) |
Get command manager storage utilisation. More... | |
virtual VOID | Show_Boot_Information (TProtocol_Base *object_Protocol) |
Send boot information message over given protocol. More... | |
virtual U32 | Get_OS_Status () |
This method return OS status. More... | |
virtual BOOL | Start_Operation () |
This method set module in operation mode. More... | |
Protected Attributes | |
TOS_Status_Structure | struct_OS_Status |
Container for OS status. More... | |
ConOpSys terminal command manager base class.
TCommand_Manager_Base::TCommand_Manager_Base | ( | ) |
Class constructor method.
References struct_OS_Status, and TOS_Status_Structure::u32_Raw_Data.
|
virtual |
Class destructor method.
|
virtual |
Command manager finalisation method.
Reimplemented in TCommand_Manager.
|
virtual |
Execute command method.
[in] | *c8_Command_String | - Pointer to the command name string |
[in] | *object_Protocol | - Pointer to the communication protocol object |
false | - Command name is not equal and command not executed |
true | - Command name is equal and command executed |
Reimplemented in TCommand_Manager.
|
virtual |
Get pointer to the command object referenced by command manager storage index.
[in] | u32_Storage_Index | - Command manager storage index |
[out] | **object_Command | - Pointer to the command object |
false | - Command object not found in command manager storage |
true | - Command object found in command manager storage |
Reimplemented in TCommand_Manager.
|
virtual |
Get command count registered in command manager.
Reimplemented in TCommand_Manager.
|
virtual |
Get command object index referenced by command object pointer.
[out] | *u32_Storage_Index | - Command manager storage index |
[in] | *object_Command | - Pointer to the command object |
false | - Command object not found in command manager storage |
true | - Command object found in command manager storage |
Reimplemented in TCommand_Manager.
|
virtual |
This method return OS status.
Reimplemented in TCommand_Manager.
References struct_OS_Status, and TOS_Status_Structure::u32_Raw_Data.
|
virtual |
Get command manager storage utilisation.
[out] | *u32_Command_Capacity | - Pointer to the command manager capacity variable |
[out] | *u32_Command_Count | - Pointer to the command count variable |
Reimplemented in TCommand_Manager.
|
virtual |
Command manager initialisation method.
Reimplemented in TCommand_Manager.
|
virtual |
Test for command registered in command manager.
[in] | *object_Command | - Pointer to the command object |
false | - Command object not registered in command manager storage |
true | - Command object registered in command manager storage |
Reimplemented in TCommand_Manager.
|
virtual |
Performs registration of the command in command manager.
[in] | *object_Command | - Pointer to the command object |
false | - Command object registration successed |
true | - Command object registration failed |
Reimplemented in TCommand_Manager.
|
virtual |
Send boot information message over given protocol.
[in] | *object_Protocol | - Pointer to the protocol object |
Reimplemented in TCommand_Manager.
|
virtual |
This method set module in operation mode.
false | - Module in error mode |
true | - Module ready to operations |
Reimplemented in TCommand_Manager.
|
virtual |
Performs unregistration of the command in command manager.
[in] | *object_Command | - Pointer to the command object |
false | - Command object unregistration successed |
true | - Command object unregistration failed |
Reimplemented in TCommand_Manager.
|
protected |
Container for OS status.
Referenced by TCommand_Manager::Get_OS_Status(), Get_OS_Status(), TCommand_Manager::Init(), TCommand_Manager::Start_Operation(), TCommand_Manager::TCommand_Manager(), and TCommand_Manager_Base().