16template <
typename ConcreteJsonUtility>
20 void Import(T &
object,
const string file_path) {
21 static_cast<ConcreteJsonUtility *
>(
this)->ImplementImport(
object, file_path);
25 void Export(T &
object,
const string file_path) {
26 static_cast<ConcreteJsonUtility *
>(
this)->ImplementExport(
object, file_path);
30 static_cast<ConcreteJsonUtility *
>(
this)->ImplementImport(bpo_points, file_path);
34 static_cast<ConcreteJsonUtility *
>(
this)->ImplementExport(bpo_points, file_path);
CRTP interface with methods of importing / exporting objects from / to json files (concrete example =...
void Export(T &object, const string file_path)
void Import(piecepoints::BPOPointsSKeys &bpo_points, const string file_path)
void Import(T &object, const string file_path)
void Export(piecepoints::BPOPointsSKeys &bpo_points, const string file_path)
Piece Points spec in "Base Points Offset" form with string keys in member unordered_map objects for e...
Providing position-dependent values of pieces to objects in moveselection namespace.