16 using namespace osl::progress;
 
   21   cerr << 
"Usage: " << prog << 
" [-a] csa-filename" 
   26 void show(
const char *filename);
 
   29 int main(
int argc, 
char **argv)
 
   31   const char *program_name = argv[0];
 
   32   bool error_flag = 
false;
 
   37   while ((c = getopt(argc, argv, 
"at:f:vh")) != EOF)
 
   43     default:    error_flag = 
true;
 
   54   for (
int i=0; i<argc; ++i)
 
   60 void show(
const NumEffectState& state)
 
   63   const int progress_black = Effect5x3::makeProgress(
BLACK,state);
 
   64   const int progress_white = Effect5x3::makeProgress(
WHITE,state);
 
   65   std::cout << 
"black " << progress_black << 
"\n";
 
   66   std::cout << 
"white " << progress_white << 
"\n";
 
   67   std::cout << 
"total " << progress_black + progress_white << 
"\n";
 
   71 void show(
const char *filename)
 
   73   std::cout << filename << 
"\n";
 
   74   CsaFile file(filename);
 
   75   const vector<osl::Move> 
moves = file.getRecord().getMoves();
 
   76   NumEffectState state(file.getInitialState());
 
   77   for (
unsigned int i=0; i<moves.size(); i++)
 
   81     const Move m = moves[i];