8 #include <boost/foreach.hpp>
20 cerr <<
"Usage: " << prog <<
" csa-filenames "
26 int main(
int argc,
char **argv)
32 for (
int i=1; i<argc; ++i) {
33 CsaFile file(argv [i]);
34 const vector<Move>
moves=file.getRecord().getMoves();
35 NumEffectState state((SimpleState(
HIRATE)));
36 BOOST_FOREACH(
Move m, moves)
38 std::string new_name = std::string(
"tmp/")+argv[i];
39 std::ofstream os(new_name.c_str());
43 catch (std::exception& e) {
44 std::cerr << e.what() <<
"\n";