#ifndef __MACHINING_H

#define __MACHINING_H

/* $Id: machinin.h 1.1 1997/10/02 21:51:34 leon Exp leon $ */

#include <stdlib.h>

#include "lists.h"


#define MAX_COMMAND_STRING_LEN 80


class Machining
{
  private:
    struct Command
      {
        char type; // 'S', 'M', 'T'

        int  number;
        char *commandString;
        operator == (const Command &cmd) {
          return ((type == cmd.type) && (number == cmd.number));
          }
        Command(){commandString = NULL;}
        ~Command(){free(commandString);}                            
      };

  Lists<Command> commands;

  public:
    ReadINI(char *filename);
    WriteINI(char *filename);
    char *GetCommand(char type, int number);
    void InsertCommand(char type, int number, const char *commandString);

};

#endif




syntax highlighted by Code2HTML, v. 0.9.1