home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / Command / Command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-30  |  651 b   |  31 lines

  1. #ifndef _Command_H_
  2. #   define _Command_H_
  3.  
  4. #include <malloc.h>
  5.  
  6. #include <Args.h>
  7. #include "../Config/Config.h" 
  8.  
  9. class Command
  10. {
  11.     public:
  12.     Command(Args const &args,    // Constructor
  13.         Config const &cf);    
  14.     ~Command();            // Destructor (2)
  15.     char const *get_pattern();    // Request the pattern 0 if saw_eq.
  16.     int write(char const *path);    // Write the selected path
  17.     private:
  18.     void separated_pattern(char *);    // set up separated pattern
  19.                     // e.g., from xd ho fr t
  20.     void one_pattern(char *);    // set up single pattern
  21.                     // e.g. from xd hft
  22.  
  23.     Config
  24.         const *config;
  25.     char
  26.         *command,        // command received
  27.         *pattern;        // pattern built
  28. };
  29.  
  30. #   endif
  31.