Support for binpack format in sfenreader in learner. Automatically detect file extension and choose the correct reader (bin or binpack)

This commit is contained in:
Tomasz Sobczyk
2020-09-10 00:31:38 +02:00
committed by nodchip
parent 020e66d2e6
commit 6b76ebc2ca
3 changed files with 328 additions and 304 deletions

View File

@@ -133,9 +133,12 @@ namespace Learner
{
case SfenOutputType::Bin:
return std::make_unique<BinSfenOutputStream>(filename);
default:
case SfenOutputType::Binpack:
return std::make_unique<BinpackSfenOutputStream>(filename);
}
assert(false);
return nullptr;
}
// Helper class for exporting Sfen