show-ipx.cc
Go to the documentation of this file.
00001 /* show-ipx.cc
00002  */
00003 #include "osl/record/kisen.h"
00004 
00005 #include <iostream>
00006 using namespace osl;
00007 
00008 int main(int argc, char **argv)
00009 {
00010   for (int i=1; i<argc; ++i) {
00011     KisenIpxFile ipx(argv[i]);
00012     for (size_t j=0; j<ipx.size(); ++j) {
00013       std::cout << ipx.getPlayer(j, BLACK) << "\t" 
00014                 << ipx.getTitle(j, BLACK) << "\t"
00015                 << ipx.getRating(j, BLACK) << "\t";
00016       std::cout << ipx.getPlayer(j, WHITE) << "\t" 
00017                 << ipx.getTitle(j, WHITE) << "\t"
00018                 << ipx.getRating(j, WHITE) << "\n";
00019     }
00020   }
00021 
00022   return 0;
00023 }
00024 
00025 /* ------------------------------------------------------------------------- */
00026 // ;;; Local Variables:
00027 // ;;; mode:c++
00028 // ;;; c-basic-offset:2
00029 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines