csa.h
Go to the documentation of this file.
00001 #ifndef _CSA_H
00002 #define _CSA_H
00003 
00004 #include "osl/piece.h"
00005 #include "osl/move.h"
00006 #include <string>
00007 #include <iosfwd>
00008 namespace osl
00009 {
00010   namespace state
00011   {
00012     class SimpleState;
00013   }
00014   namespace record
00015   {
00020     namespace csa
00021     {
00022       struct CsaIOError;
00023 
00024       const Move strToMove(const std::string& s,const state::SimpleState& st);
00025       Player charToPlayer(char c);
00026       const Square strToPos(const std::string& s);
00027       Ptype strToPtype(const std::string& s);
00028 
00029       const std::string show(Move);
00030       const std::string fancyShow(Move);
00031       const std::string show(Square);
00032       const std::string show(Ptype);
00033       const std::string show(Piece);
00034       const std::string show(Player);
00035       const std::string show(const Move *first, const Move *last);
00036 
00037       const std::string show(Move, std::string& buf);
00038       const std::string show(Square, std::string& buf, size_t offset=0);
00039       const std::string show(Ptype, std::string& buf, size_t offset=0);
00040       const std::string show(Player, std::string& buf, size_t offset=0);
00041     } // namespace csa
00042   } // namespace record
00043 
00044   // obsolete functions,
00045   // only for backward compatibility
00046   std::ostream& csaShow(std::ostream& os, Move move);
00047   std::ostream& csaShow(std::ostream&, Square);
00048   std::ostream& csaShow(std::ostream& os, Piece piece);
00049   std::ostream& csaShow(std::ostream& os, Ptype ptype);
00050 
00051 } // namespace osl
00052 #endif /* _CSA_H */
00053 // ;;; Local Variables:
00054 // ;;; mode:c++
00055 // ;;; c-basic-offset:2
00056 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines