All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
psn.h
Go to the documentation of this file.
1 /* psn.h
2  */
3 #ifndef OSL_PSN_H
4 #define OSL_PSN_H
5 
6 #include "osl/move.h"
7 #include <string>
8 #include <stdexcept>
9 namespace osl
10 {
11  namespace state
12  {
13  class SimpleState;
14  }
15  namespace record
16  {
21  namespace psn
22  {
23  class ParseError : public std::invalid_argument
24  {
25  public:
26  ParseError(const std::string& msg = "")
27  : invalid_argument(msg)
28  { }
29  };
30  const Move strToMove(const std::string&, const state::SimpleState&);
31  const Square strToPos(const std::string&);
32  Ptype charToPtype(char);
33 
34  const std::string show(Move);
35  const std::string show(Square);
36  char show(Ptype);
37 
39  const std::string showXP(Move);
40  }
41  } // record
42 } // osl
43 
44 
45 #endif /* OSL_PSN_H */
46 // ;;; Local Variables:
47 // ;;; mode:c++
48 // ;;; c-basic-offset:2
49 // ;;; End: