CASM  1.1.0
A Clusters Approach to Statistical Mechanics
ClexDescription.hh
Go to the documentation of this file.
1 #ifndef CASM_ClexDescription
2 #define CASM_ClexDescription
3 
4 #include <iosfwd>
5 #include <string>
6 
7 namespace CASM {
8 
9 class jsonParser;
10 class DirectoryStructure;
11 
25 
26  ClexDescription(std::string _name, std::string _property,
27  std::string _calctype, std::string _ref, std::string _bset,
28  std::string _eci)
29  : name(_name),
30  property(_property),
31  calctype(_calctype),
32  ref(_ref),
33  bset(_bset),
34  eci(_eci) {}
35 
36  void print(std::ostream &sout, bool is_default, int indent = 0) const;
37 
38  std::string name;
39  std::string property;
40  std::string calctype;
41  std::string ref;
42  std::string bset;
43  std::string eci;
44 };
45 
52 
54 bool operator<(const ClexDescription &A, const ClexDescription &B);
55 
57 
58 void from_json(ClexDescription &desc, const jsonParser &json);
59 
61 
69 
70 } // namespace CASM
71 
72 #endif
Specification of CASM project directory structure.
Main CASM namespace.
Definition: APICommand.hh:8
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
bool clex_exists(const DirectoryStructure &dir, const ClexDescription &desc)
bool operator<(const ClexDescription &A, const ClexDescription &B)
Compare using name strings: A.name < B.name.
void from_json(ClexDescription &desc, const jsonParser &json)
bool new_dir(const DirectoryStructure &dir, ClexDescription const &desc)
ClexDescription default_configuration_clex()
ClexDescription & desc
Definition: settings.cc:138
DirectoryStructure const & dir
Definition: settings.cc:136
Specifies a particular cluster expansion.
void print(std::ostream &sout, bool is_default, int indent=0) const
ClexDescription(std::string _name, std::string _property, std::string _calctype, std::string _ref, std::string _bset, std::string _eci)