00001 /* csaRecord.h 00002 */ 00003 #ifndef OSL_CSARECORD_H 00004 #define OSL_CSARECORD_H 00005 #include "osl/record/record.h" 00006 namespace osl 00007 { 00008 namespace record 00009 { 00010 class CsaFile : public RecordFile 00011 { 00012 public: 00013 CsaFile(std::istream& is); 00014 CsaFile(const std::string& filename); 00015 ~CsaFile(); 00016 00017 static SearchInfo makeInfo(const SimpleState& initial, 00018 const std::string& line, 00019 Move last_move); 00020 static void parseLine(SimpleState&, Record&, std::string element, 00021 bool parse_move_comment=true); 00022 private: 00023 void read(std::istream&); 00024 }; 00025 } 00026 using record::CsaFile; 00027 } 00028 00029 #endif /* OSL_CSARECORD_H */ 00030 // ;;; Local Variables: 00031 // ;;; mode:c++ 00032 // ;;; c-basic-offset:2 00033 // ;;; End: