CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <ConfigImport.hh>
Definition at line 34 of file ConfigImport.hh.
Public Types | |
typedef std::back_insert_iterator< std::vector< ConfigIO::Result > > | map_result_inserter |
Public Member Functions | |
StructureMap (ConfigMapping::Settings const &_set, const PrimClex &_primclex) | |
Construct with PrimClex and settings (see Import / Update desc) More... | |
map_result_inserter | map (fs::path p, std::vector< std::string > const &req_properties, std::unique_ptr< Configuration > const &hint_config, map_result_inserter result) const |
Specialized mapping method for Configuration. More... | |
const ConfigMapping::Settings & | settings () const |
Returns settings used for mapping. More... | |
Private Member Functions | |
SimpleStructure | _make_structure (const fs::path &p) const |
Read SimpleStructure to be imported. More... | |
Private Attributes | |
std::unique_ptr< ConfigMapper > | m_configmapper |
typedef std::back_insert_iterator<std::vector<ConfigIO::Result> > CASM::DB::StructureMap< Configuration >::map_result_inserter |
Definition at line 41 of file ConfigImport.hh.
CASM::DB::StructureMap< Configuration >::StructureMap | ( | ConfigMapping::Settings const & | _set, |
const PrimClex & | primclex | ||
) |
Construct with PrimClex and settings (see Import / Update desc)
Construct with PrimClex and ConfigMapping::Settings (see Import / Update desc)
Definition at line 102 of file ConfigImport.cc.
|
private |
Read SimpleStructure to be imported.
Read BasicStructure to be imported.
If 'p.extension()' == ".json" or ".JSON", read as properties.calc.json Else, read as VASP POSCAR
Definition at line 212 of file ConfigImport.cc.
StructureMap< Configuration >::map_result_inserter CASM::DB::StructureMap< Configuration >::map | ( | fs::path | p, |
std::vector< std::string > const & | req_properties, | ||
std::unique_ptr< Configuration > const & | hint_config, | ||
map_result_inserter | result | ||
) | const |
Specialized mapping method for Configuration.
Specialized import method for ConfigType.
p | Path to structure or properties.calc.json file. Not guaranteed to exist or be valid. |
req_properties,list | of names of properties that are required for mapped data to be considered 'complete' |
hint | std::unique_ptr<Configuration> to 'from' config for 'casm update', or 'end' if unknown as with 'casm import'. |
result | Insert iterator of Result objects to output mapping results |
p | Path to structure or properties.calc.json file. Not guaranteed to exist or be valid. |
hint | std::unique_ptr<Configuration> to 'from' config for 'casm update', or null if unknown as with 'casm import'. |
result | Insert iterator of Result objects to output mapping results |
Definition at line 121 of file ConfigImport.cc.
ConfigMapping::Settings const & CASM::DB::StructureMap< Configuration >::settings | ( | ) | const |
Returns settings used for mapping.
Definition at line 96 of file ConfigImport.cc.
|
private |
Definition at line 71 of file ConfigImport.hh.