26 template <
typename OutputIterator>
28 const PrimClex &
primclex,
const Completer::ImportOption &import_opt,
29 OutputIterator result);
36 bool _additional_files =
false,
bool _overwrite =
false)
65 template <
typename _ConfigType>
74 template <
typename PathIterator>
75 void import(PathIterator begin, PathIterator end);
88 void _copy_files(std::vector<ConfigIO::Result> &results)
const;
98 template <
typename ConfigType>
const PrimClex & primclex() const
Generic ConfigType-dependent part of Import.
void _copy_files(std::vector< ConfigIO::Result > &results) const
ImportT(const PrimClex &primclex, const StructureMap< ConfigType > &mapper, ImportSettings const &_set, std::string report_dir)
Constructor.
virtual DataFormatter< ConfigIO::Result > _import_formatter() const =0
Allow ConfigType to specialize the report formatting for 'import'.
ImportSettings const & settings() const
void _import_report(std::vector< ConfigIO::Result > &results) const
const StructureMap< ConfigType > & m_structure_mapper
PrimClex is the top-level data structure for a CASM project.
jsonParser & to_json(ImportSettings const &_set, jsonParser &_json)
jsonParser const & from_json(ImportSettings &_set, jsonParser const &_json)
std::pair< OutputIterator, int > construct_pos_paths(const PrimClex &primclex, const Completer::ImportOption &import_opt, OutputIterator result)
Construct pos_paths from input args –pos && –batch.
Struct with optional parameters for Config/Data Import Specifies default parameters for all values,...
ImportSettings(bool _import=false, bool _copy_files=false, bool _additional_files=false, bool _overwrite=false)