33 const auto &vm = sym_opt.
vm();
36 if (vm.count(
"desc")) {
37 json[
"desc"] =
static_cast<bool>(vm.count(
"help"));
39 if (vm.count(
"help")) {
40 json[
"help"] =
static_cast<bool>(vm.count(
"help"));
42 if (vm.count(
"lattice-point-group")) {
43 json[
"print_lattice_point_group"] =
44 static_cast<bool>(vm.count(
"lattice-point-group"));
46 if (vm.count(
"factor-group")) {
47 json[
"print_factor_group"] =
48 static_cast<bool>(vm.count(
"factor-group"));
50 if (vm.count(
"crystal-point-group")) {
51 json[
"print_crystal_point_group"] =
52 static_cast<bool>(vm.count(
"crystal-point-group"));
54 if (vm.count(
"brief")) {
55 json[
"brief"] =
static_cast<bool>(vm.count(
"brief"));
57 if (vm.count(
"coord") && !vm[
"coord"].defaulted()) {
60 if (vm.count(
"symmetrize")) {
61 json[
"symmetrize"] = sym_opt.
poscar_path().string();
63 if (vm.count(
"tol") && !vm[
"tol"].defaulted()) {
64 json[
"tol"] = sym_opt.
tol();
66 if (vm.count(
"dof-space-analysis")) {
67 json[
"dof_space_analysis"] =
68 static_cast<bool>(vm.count(
"dof-space-analysis"));
70 if (vm.count(
"settings")) {
73 if (vm.count(
"input")) {
76 if (vm.count(
"scelnames")) {
79 if (vm.count(
"confignames")) {
82 if (vm.count(
"selection")) {
85 if (vm.count(
"dofs")) {
88 if (vm.count(
"calc-wedge")) {
89 json[
"calc_wedge"] =
static_cast<bool>(vm.count(
"calc-wedge"));
const std::vector< std::string > & config_strs() const
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()
const fs::path settings_path() const
Returns the path corresponding to add_settings_suboption.
po::variables_map & vm()
Get the variables map.
fs::path poscar_path() const
const fs::path & selection_path() const
Returns the string corresponding to add_config_suboption()
const std::string & coordtype_str() const
Return the coordinate type in the form of a string.
const std::vector< std::string > & dof_strs() const
Returns the names of the DoF type names for add_dofs_suboption()
jsonParser & put_obj()
Puts new empty JSON object.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)