summaryrefslogtreecommitdiff
path: root/sem_3/Programm/jeu_de_la_vie/tabOptions.h
blob: cef8aaae8e5759f7d3f5c0042406acbd89596b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __TABOPTIONS_H__
#define __TABOPTIONS_H__

#include <string>
#include "option.h"

#define NMAX_OPTS 100
class TabOptions {
 private:
  Option opts[NMAX_OPTS];
  size_t nb_opts;
  int getOptionIndex(const std::string &opt) const;
 public:
  TabOptions();  
  void addOption(const Option &o);
  void print() const;
  int getOptionId(const std::string &opt) const;
  bool optionHasArgument(const std::string &opt) const;
  Option::Type optionArgumentType(const std::string &opt) const;
};

#endif