All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
csa.h
Go to the documentation of this file.
1 #ifndef _CSA_H
2 #define _CSA_H
3 
4 #include "osl/piece.h"
5 #include "osl/move.h"
6 #include <string>
7 #include <iosfwd>
8 namespace osl
9 {
10  namespace state
11  {
12  class SimpleState;
13  }
14  namespace record
15  {
20  namespace csa
21  {
22  struct CsaIOError;
23 
24  const Move strToMove(const std::string& s,const state::SimpleState& st);
25  Player charToPlayer(char c);
26  const Square strToPos(const std::string& s);
27  Ptype strToPtype(const std::string& s);
28 
29  const std::string show(Move);
30  const std::string fancyShow(Move);
31  const std::string show(Square);
32  const std::string show(Ptype);
33  const std::string show(Piece);
34  const std::string show(Player);
35  const std::string show(const Move *first, const Move *last);
36 
37  const std::string show(Move, std::string& buf);
38  const std::string show(Square, std::string& buf, size_t offset=0);
39  const std::string show(Ptype, std::string& buf, size_t offset=0);
40  const std::string show(Player, std::string& buf, size_t offset=0);
41  } // namespace csa
42  } // namespace record
43 
44  // obsolete functions,
45  // only for backward compatibility
46  std::ostream& csaShow(std::ostream& os, Move move);
47  std::ostream& csaShow(std::ostream&, Square);
48  std::ostream& csaShow(std::ostream& os, Piece piece);
49  std::ostream& csaShow(std::ostream& os, Ptype ptype);
50 
51 } // namespace osl
52 #endif /* _CSA_H */
53 // ;;; Local Variables:
54 // ;;; mode:c++
55 // ;;; c-basic-offset:2
56 // ;;; End: