4 #include <boost/filesystem/path.hpp>
5 #include <boost/program_options.hpp>
68 static std::string
path();
77 static std::string
query();
89 static std::string
dbtype();
101 static std::string
bset();
104 static std::string
clex();
107 static std::string
ref();
110 static std::string
eci();
116 static std::string
dof();
123 static void void_to_bash(std::vector<std::string> &arguments);
126 static void path_to_bash(std::vector<std::string> &arguments);
141 static void query_to_bash(std::vector<std::string> &arguments);
163 static void bset_to_bash(std::vector<std::string> &arguments);
166 static void clex_to_bash(std::vector<std::string> &arguments);
169 static void ref_to_bash(std::vector<std::string> &arguments);
172 static void eci_to_bash(std::vector<std::string> &arguments);
179 static void dof_to_bash(std::vector<std::string> &arguments);
236 const std::string &init_descriptor);
239 po::variables_map &
vm();
242 const po::variables_map &
vm()
const;
245 const po::options_description &
desc();
248 const po::options_description &
desc()
const;
252 const std::string &
tag()
const;
335 std::set<std::string> _configtype_opts);
352 std::set<std::string> _configtype_opts);
490 const std::vector<std::string> &
config_strs()
const;
502 const std::vector<std::string> &
name_strs()
const;
528 const std::vector<std::string> &
dof_strs()
const;
574 const std::string &
exec_str()
const;
629 const std::string &
set_str()
const;
650 const std::vector<std::string> &
calc_vec()
const;
734 const std::vector<std::string> &
input_vec()
const;
944 const std::vector<std::string> &
columns_vec()
const;
970 const std::vector<fs::path> &
pos_vec()
const;
static std::string path()
Get value_type string for path completion.
static const std::vector< std::pair< std::string, ARG_TYPE > > m_argument_table
static void ref_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for REF.
static std::string configname()
Get value_type string for configuration completion.
static void infomethod_to_bash(std::vector< std::string > &arguments)
static void void_to_bash(std::vector< std::string > &arguments)
static std::string dof()
Get value_type string for property mode completion.
static void configtype_to_bash(std::vector< std::string > &arguments)
static std::string configtype()
Get value_type string for configtype mode completion.
static void dof_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for DOF.
static ARG_TYPE determine_type(const po::option_description &boost_option)
static void eci_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for ECI.
static void calctype_to_bash(std::vector< std::string > &arguments)
static std::string operation()
Get value_type string for operation completion.
static std::string calctype()
Get value_type string for calctype mode completion.
static void operator_to_bash(std::vector< std::string > &arguments)
static void clex_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for CLEX.
static std::string property()
Get value_type string for property mode completion.
static std::string enummethod()
Get value_type string for enummethod mode completion.
static void property_to_bash(std::vector< std::string > &arguments)
static std::string eci()
Get value_type string for eci mode completion.
static std::string coordtype()
Get value_type string for coordinate mode completion.
static std::string infomethod()
Get value_type string for infomethod mode completion.
static std::string query()
Get value_type string for query completion.
static std::string dbtype()
Get value_type string for dbtype mode completion.
static std::string ref()
Get value_type string for ref mode completion.
static void command_to_bash(std::vector< std::string > &arguments)
static void scelname_to_bash(std::vector< std::string > &arguments)
static void dbtype_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for DBTYPE.
static void bset_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for BSET.
static std::string command()
Get value_type string for command completion (i.e. stuff in your $PATH)
static std::string bset()
Get value_type string for bset mode completion.
static void path_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for PATH.
static void enummethod_to_bash(std::vector< std::string > &arguments)
static std::string clex()
Get value_type string for clex mode completion.
static void query_to_bash(std::vector< std::string > &arguments)
Fill the output strings with bash completion appropriate values for QUERY.
static std::string supercell()
Get value_type string for supercell completion.
static void configname_to_bash(std::vector< std::string > &arguments)
void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
std::string m_axis_choice_str
const std::string & axis_choice_str() const
bool all_existing() const
virtual ~EnumOptionBase()
EnumOptionBase(std::string const &_name)
virtual void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
const std::vector< std::string > & desc_vec() const
std::string method() const
const std::string & filter_str() const
std::vector< std::string > m_desc_vec
std::vector< std::string > m_calc_vec
const std::string & settings_str() const
void initialize() override
Fill in the options descriptions accordingly.
std::string m_settings_str
const std::vector< std::string > & calc_vec() const
const std::vector< fs::path > & pos_vec() const
std::vector< fs::path > m_pos_vec
const fs::path & batch_path() const
void initialize() override
Fill in the options descriptions accordingly.
const std::vector< std::string > & desc_vec() const
void initialize() override
Fill in the options descriptions accordingly.
std::string method() const
std::vector< std::string > m_desc_vec
void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
Index condition_index() const
OptionHandlerBase(const std::string &init_option_tag)
Define the name of the command during construction.
std::set< std::string > db_type_opts() const
std::string configtype() const
COORD_TYPE coordtype_enum() const
Return the coordinate type recasted as the CASM defined enum.
void add_selections_suboption(const fs::path &_default="MASTER")
Add –selections suboption (defaults to MASTER)
std::string m_coordtype_str
const std::vector< std::string > & config_strs() const
fs::path m_file_path
The path string to go with add_file_path_suboption.
void add_prim_path_suboption(const fs::path &_default="")
Add –prim suboption.
void add_input_suboption(bool required=true)
fs::path m_selection_path
The selection string to go with add_config_suboption.
std::vector< std::string > m_dof_strs
The list of DoF type names.
void add_confignames_suboption()
Add a –confignames suboption.
void add_names_suboption()
Add a –names suboption.
std::string m_config_str
The name of a single configname to go with add_configname_suboption()
po::variables_map m_vm
Boost program options variable map.
const po::options_description & desc()
Get the program options, filled with the initialized values.
std::vector< fs::path > m_selection_paths
The selection string to go with add_config_suboption.
std::string input_str() const
Returns the path corresponding to add_input_suboption.
const std::vector< std::string > & supercell_strs() const
Returns the list of the supercells for add_scelnames_suboption()
void add_scelname_suboption()
Add a –scelname suboption.
static std::string default_dry_run_msg()
std::vector< std::string > m_help_opt_vec
The list of strings to go with add_general_help_suboption()
std::string m_configtype
User-specified config type.
po::variables_map & vm()
Get the variables map.
bool gzip_flag() const
Returns the value assigned for add_gzip_suboption()
const fs::path & selection_path() const
Returns the string corresponding to add_config_suboption()
void add_settings_suboption(bool required=true)
void add_help_suboption()
Add a plain –help and –desc suboptions.
std::vector< std::string > m_name_strs
The list of the supercell names of add_configname_suboption()
fs::path m_output_path
The path that goes with add_output_suboption.
const std::vector< std::string > & name_strs() const
void add_configlists_suboption(const fs::path &_default="MASTER")
Add –configs suboption (defaults to MASTER)
const fs::path & prim_path() const
Returns the string corsresponding to add_prim_path_suboption()
std::vector< std::string > m_config_strs
The list of the supercell names of add_configname_suboption()
po::options_description m_desc
const std::string & coordtype_str() const
Return the coordinate type in the form of a string.
const fs::path settings_path() const
Returns the path corresponding to add_settings_suboption.
void add_configlist_suboption(const fs::path &_default="MASTER")
Add –config suboption (defaults to MASTER)
std::set< std::string > configtype_opts() const
int verbosity() const
Will throw if not expected string or int in range [0, 100].
void add_db_type_suboption(std::string _default, std::set< std::string > _configtype_opts)
std::string m_tag
name of the casm command
void add_selection_no_default_suboption()
Add –selection suboption (no default)
std::string m_verbosity_str
The verbosity string to go with add_config_suboption.
void add_coordtype_suboption()
Add a –coord suboption to specify FRAC or CART.
std::set< std::string > m_configtype_opts
Set of valid config types.
const std::vector< std::string > & help_opt_vec() const
Returns the list of strings corresponding to add_general_help_suboption()
std::string m_input_str
The settings path to go with add_input_suboption()
void add_dry_run_suboption(std::string msg=default_dry_run_msg())
void add_configtype_suboption(std::string _default, std::set< std::string > _configtype_opts)
Add –type suboption (default, set of short_name of allowed ConfigTypes)
const std::vector< std::string > & dof_strs() const
Returns the names of the DoF type names for add_dofs_suboption()
void add_general_help_suboption()
Add a smart –help suboption that takes "properties" or "operators".
void add_verbosity_suboption()
bool m_gzip_flag
The bool that goes with add_gzip_suboption.
void add_scelnames_suboption()
Add a –scelnames suboption.
virtual void initialize()=0
Fill in the options descriptions accordingly.
std::vector< std::string > m_supercell_strs
The list of supercell names of add_scelnames_suboption()
std::string db_type() const
void add_dofs_suboption()
Add a –dofs suboption to specify DoF Types.
const std::string & supercell_str() const
Returns the name of the supercell for add_scelname_suboption()
const std::string & config_str() const
void add_configname_suboption()
Add a –configname suboption.
void add_file_path_suboption(const fs::path &_default="")
Add –path suboption (defaults to MASTER)
std::set< std::string > m_db_type_opts
Set of valid config types.
void add_gzip_suboption()
void add_configlists_nodefault_suboption()
Add –configs suboption (no default)
std::string m_db_type
User-specified config type.
const fs::path & file_path() const
Returns the string corsresponding to add_file_path_suboption()
const std::vector< fs::path > & selection_paths() const
Returns the string corresponding to add_config_suboption()
void add_configlist_nodefault_suboption()
Add –config suboption (no default)
void add_selection_suboption(const fs::path &_default="MASTER")
Add –selection suboption (defaults to MASTER)
void add_output_suboption()
Add a –output suboption. Expects to allow "STDOUT" to print to screen.
const std::string & verbosity_str() const
Returns the string corresponding to add_verbosity_suboption()
fs::path m_prim_path
The path string to go with add_prim_path_suboption.
const std::string & tag() const
fs::path m_settings_path
The settings path to go with add_settings_suboption()
const fs::path output_path() const
Returns the path corresponding to add_output_suboption()
std::string m_supercell_str
The string of the supercell name of add_scelname_suboption()
void initialize() override
Fill in the options descriptions accordingly.
const fs::path & cspecs_path() const
std::vector< std::string > m_columns_vec
void initialize() override
Fill in the options descriptions accordingly.
bool verbatim_flag() const
const std::vector< std::string > & new_alias_vec() const
const std::vector< std::string > & columns_vec() const
std::vector< std::string > m_new_alias_vec
void initialize() override
Fill in the options descriptions accordingly.
const std::string & set_str() const
void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
const std::string & exec_str() const
const std::vector< std::string > & criteria_vec() const
void initialize() override
Fill in the options descriptions accordingly.
std::vector< std::string > m_criteria_vec
std::vector< std::string > m_input_vec
void initialize() override
Fill in the options descriptions accordingly.
const std::string & input_str() const
const std::vector< std::string > & input_vec() const
void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
const std::string & unit_scel_str() const
std::vector< fs::path > m_transf_mat_paths
std::string m_unit_scel_str
const fs::path & struct_path() const
const std::vector< fs::path > & transf_mat_paths() const
fs::path poscar_path() const
void initialize() override
Fill in the options descriptions accordingly.
double lattice_weight() const
double vol_tolerance() const
double max_va_frac() const
double min_va_frac() const
void initialize() override
Fill in the options descriptions accordingly.
void initialize() override
Fill in the options descriptions accordingly.
INDEX_TYPE Index
For long integer indexing: