Loading...
Searching...
No Matches
q3::PseudopotentialFactory Class Reference

Reads a dataset in whichever registered format its first line names. More...

#include <factory.hpp>

Static Public Member Functions

static std::unique_ptr< Pseudopotential > read (const std::string &filename, int dataset_index=0)
 

Detailed Description

Reads a dataset in whichever registered format its first line names.

Definition at line 32 of file factory.hpp.

Member Function Documentation

◆ read()

static std::unique_ptr< Pseudopotential > q3::PseudopotentialFactory::read ( const std::string &  filename,
int  dataset_index = 0 
)
inlinestatic

Read the dataset at dataset_index from filename, in the highest-ranked registered format that recognises the file's first line.

Definition at line 38 of file factory.hpp.

References q3::PseudopotentialFormat::detection_priority(), q3::pseudopotential_format_registry(), and q3::PseudopotentialFormat::read().

Referenced by q3::functional_from_pseudopotentials(), and q3::load_pseudopotentials().


The documentation for this class was generated from the following file: