summaryrefslogtreecommitdiff
path: root/sem_3/Programm/jeu_de_la_vie/JDV0-bis.h
blob: 763111d8de729e83d50e5de15e3a23f66535fc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __JDV_H
#define __JDV_H

#include "population-vivante-v2.h"
#include "tabOptions.h"

#define HELP_ID          1
#define VERSION_ID       2
#define DIMENSION_ID    10
#define PROBABILITY_ID  11
#define CONFIG_ID       20


class JeuDeLaVie {
 private:
  PopulationVivante POP;
  TabOptions opts;
  
  void nettoie(std::string &s);
  bool findCleVal(std::string &s, std::string &s1,std::string &s2);
  void TraiteOption(const std::string &cle, const std::string &valeur, size_t num_ligne);
  
 public:
  
  JeuDeLaVie();
  
  void loadConfig(std::string file);
  void run(size_t);
  void parseOptions(int argc, char** argv);
  
};






#endif