Subversion Repositories Games.Chess Giants

Rev

Rev 169 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 169 Rev 185
Line 4... Line 4...
4
  Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
4
  Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
5
  Copyright (C) 2015-2018 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
5
  Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
6
 
6
 
7
  Stockfish is free software: you can redistribute it and/or modify
7
  Stockfish is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU General Public License as published by
8
  it under the terms of the GNU General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
10
  (at your option) any later version.
Line 47... Line 47...
47
 
47
 
48
public:
48
public:
49
  Option(OnChange = nullptr);
49
  Option(OnChange = nullptr);
50
  Option(bool v, OnChange = nullptr);
50
  Option(bool v, OnChange = nullptr);
51
  Option(const char* v, OnChange = nullptr);
51
  Option(const char* v, OnChange = nullptr);
52
  Option(int v, int minv, int maxv, OnChange = nullptr);
52
  Option(double v, int minv, int maxv, OnChange = nullptr);
-
 
53
  Option(const char* v, const char* cur, OnChange = nullptr);
53
 
54
 
54
  Option& operator=(const std::string&);
55
  Option& operator=(const std::string&);
55
  void operator<<(const Option&);
56
  void operator<<(const Option&);
56
  operator int() const;
57
  operator double() const;
57
  operator std::string() const;
58
  operator std::string() const;
-
 
59
  bool operator==(const char*) const;
58
 
60
 
59
private:
61
private:
60
  friend std::ostream& operator<<(std::ostream&, const OptionsMap&);
62
  friend std::ostream& operator<<(std::ostream&, const OptionsMap&);
61
 
63
 
62
  std::string defaultValue, currentValue, type;
64
  std::string defaultValue, currentValue, type;