#include <string.h>
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <fstream.h>

#define MAX 5
#define LENGTH 128
#define MAXSIZE 65000

typedef struct Constraint
{
  char word[MAX * 3]; //the length of word=15
};

class Filter
{
 private:
  int numberOfConstraint;
  Constraint constraints[MAX * 3];
 public:
  Filter();
  ~Filter();
  void clean();
  int search(const char* httpFile);
  int filterFile(char* inputFile);
  void setConstraint(char* newConstraint);
  void deleteConstraint(int index);
  char* showConstraint(int index);
  int searchConstraint(char* constraint);
};
 

1