/***************************************************************************
 *                                                                         *
 *   CMDPARSE.H                                                            *
 *                                                                         *
 *   Copyright (c) 1999 Galacticomm, Inc.         All Rights Reserved.     *
 *                                                                         *
 *   Active HTML Remote Sysop command line parser declarations.            *
 *                                                                         *
 *                                           - J. Alvrus    01/04/1999     *
 *                                                                         *
 ***************************************************************************/

#if !defined(__CMDPARSE_H)
#define __CMDPARSE_H

#include "gcomm.h"
// NOTE: the desired string implementation must be #included before this file.

class rsyCommandParser {
public:
     rsyCommandParser();
     ~rsyCommandParser();

     CHAR const *                  //   returns pointer to internal buffer
     GetCommand(                   // get command string from new command line
     CHAR const * s);              //   new command line to parse

     CHAR const *                  //   returns pointer to internal buffer
     GetNextArg();                 // get next argument from command line

private:                           // private member functions

private:                           // private data members
     string m_CommandLine;         //   entire command line
     string m_cmd;                 //   command string
     string m_arg;                 //   current argument
     CHAR const * m_pCur;          //   current parsing position
};

#endif // !defined(__CMDPARSE_H)
