#ifndef _CONFIGFILE_H
#define _CONFIGFILE_H

#include "Vector.h"

#define OPTION_FLAG_CONFIRM 1

class Option
{
 public:
  Option(char *label, char *action, int flags)
    {
      this->label=strdup(label);
      this->action=strdup(action);
      this->flags=flags;
    }
  
  ~Option()
    {
      if (label!=NULL)
	free(label);
      if (action!=NULL)
	free(action);
    }

  char *label;
  char *action;
  int flags;
};

Vector<Option*> *readConfigFile(const char *path);

#endif
