Abstract base command class with a token string and empty methods for extracting parameters from a string and putting values into a string
![]() | NsgCmd ( string tok, NsgInterface* cmdInterface ) Constructor which sets its command identifier string and the command Interface and the registers itself with the NsgCmdRegistry |
![]() | ~NsgCmd () destructor |
![]() | parseStream ( const char *cmdString) Parses the given string depending on its command type and internally stores the params |
![]() | execute () Executes the command, invoking the related functions is NsgInterface |
![]() | toStream ( ostrstream& obuf ) Serialises this command by putting the name and data into the given stream |
![]() | getToken () returns the identifier string for this command |
Abstract base command class with a token string and empty methods for extracting parameters from a string and putting values into a string. On creation, each NsgCmd registers itself with the NsgCmdRegistry with its identifier. When any new commands are received from the dbclient, the NsgCmdInterpreter will disseminate it to the appropriate NsgCmd calling its execute method. This also has an instance of the NsgInterface whose commands will be called by the inherited NsgCmd's.
virtual int parseStream( const char *cmdString)
virtual void execute()
virtual void toStream( ostrstream& obuf )
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de