![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
Shell command node class. More...
#include <dynashell.h>
Public Types | |
| enum | NodeType { NodeTypeNull, NodeTypeCmd, NodeTypeMap } |
| Node type. | |
Public Member Functions | |
| ShCmdNode () | |
| Default constructor. | |
| ShCmdNode (DynaShellCmd *pCmd) | |
| Shell command initialization constructor. More... | |
| ShCmdNode (ShCmdMap *pMap) | |
| Map of commands initialization constructor. More... | |
| ~ShCmdNode () | |
| Default destructor. | |
| ShCmdNode & | operator= (DynaShellCmd *rhs) |
| Shell command assignment operator. More... | |
| ShCmdNode & | operator= (ShCmdMap *rhs) |
| Shell map assignment operator. More... | |
| DynaShellCmd * | GetCmd () |
| Get command object. More... | |
| ShCmdMap * | GetMap () |
| Get map object. More... | |
| string | GetMapBrief () |
| void | SetMapBrief (const string &strBrief) |
| bool | IsNull () |
| Test if node type is null. More... | |
| bool | IsCmd () |
| Test if node type is shell command. More... | |
| bool | IsMap () |
| Test if node type is map of commands. More... | |
Protected Attributes | |
| NodeType | m_eType |
| node type | |
| union { | |
| DynaShellCmd * m_pCmd | |
| pointer to allocated shell command | |
| ShCmdMap * m_pMap | |
| pointer to allocated map of commands | |
| } | m_obj |
| node object | |
| string | m_strMapBrief |
| map brief description | |
Shell command node class.
Each node holds either a command or a map of commands.
Definition at line 119 of file dynashell.h.
|
inline |
Shell command initialization constructor.
| pCmd | Allocated shell command. |
Definition at line 141 of file dynashell.h.
|
inline |
Map of commands initialization constructor.
| pMap | Allocated map of commands. |
Definition at line 152 of file dynashell.h.
|
inline |
Get command object.
Definition at line 196 of file dynashell.h.
Referenced by DynaShellCmdHelp::Exec().
|
inline |
Get map object.
Definition at line 206 of file dynashell.h.
Referenced by DynaShellCmdHelp::Exec().
|
inline |
Test if node type is shell command.
Definition at line 243 of file dynashell.h.
Referenced by DynaShellCmdHelp::Exec().
|
inline |
Test if node type is map of commands.
Definition at line 250 of file dynashell.h.
Referenced by DynaShellCmdHelp::Exec().
|
inline |
Test if node type is null.
Definition at line 236 of file dynashell.h.
|
inline |
Shell command assignment operator.
| rhs | Pointer to allocated shell command right hand side. |
Definition at line 170 of file dynashell.h.
References m_pCmd.
Shell map assignment operator.
| rhs | Pointer to allocated map of commands right hand side. |
Definition at line 184 of file dynashell.h.
References m_pMap.