CASM  1.1.0
A Clusters Approach to Statistical Mechanics
io_traits.cc
Go to the documentation of this file.
2 
3 namespace CASM {
4 
5 const std::string traits<COORD_TYPE>::name = "coordinate_mode";
6 
8 const std::multimap<COORD_TYPE, std::vector<std::string> >
9  traits<COORD_TYPE>::strval = {
11  {"FRAC", "Direct", "direct", "Fractional", "fractional"}},
12  {COORD_TYPE::CART, {"CART", "Cartesian", "cartesian"}},
13  {COORD_TYPE::INTEGRAL, {"INTEGRAL", "Integral", "integral"}}};
14 
15 const std::string traits<PERIODICITY_TYPE>::name = "periodicity_type";
16 
18 const std::multimap<PERIODICITY_TYPE, std::vector<std::string> >
19  traits<PERIODICITY_TYPE>::strval = {
20  {PERIODICITY_TYPE::PERIODIC, {"PERIODIC"}},
21  {PERIODICITY_TYPE::APERIODIC, {"APERIODIC", "LOCAL"}}};
22 
23 const std::string traits<EQUIVALENCE_TYPE>::name = "equivalence_type";
24 
25 const std::multimap<EQUIVALENCE_TYPE, std::vector<std::string> >
26  traits<EQUIVALENCE_TYPE>::strval = {
27  {EQUIVALENCE_TYPE::PRIM, {"PRIM", "prim"}},
28  {EQUIVALENCE_TYPE::SCEL, {"SCEL", "scel"}},
29  {EQUIVALENCE_TYPE::CONFIG, {"CONFIG", "config"}}};
30 
31 const std::string traits<CELL_TYPE>::name = "cell_type";
32 
33 const std::multimap<CELL_TYPE, std::vector<std::string> >
34  traits<CELL_TYPE>::strval = {{CELL_TYPE::PRIM, {"PRIM"}},
35  {CELL_TYPE::SCEL, {"SCEL"}}};
36 
37 const std::string traits<OnError>::name = "on_error";
38 
39 const std::multimap<OnError, std::vector<std::string> >
40  traits<OnError>::strval = {{OnError::THROW, {"THROW", "throw"}},
41  {OnError::WARN, {"WARN", "warn"}},
42  {OnError::CONTINUE, {"CONTINUE", "continue"}}};
43 
44 } // namespace CASM
GenericDatumFormatter< std::string, ConfigEnumDataType > name()
Main CASM namespace.
Definition: APICommand.hh:8