CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::CompositionAxes Struct Reference

#include <AppIO.hh>

Detailed Description

Definition at line 65 of file AppIO.hh.

Public Member Functions

 CompositionAxes ()
 
 CompositionAxes (fs::path _filename)
 Read CompositionAxes from file. More...
 
 CompositionAxes (const jsonParser &json)
 Read CompositionAxes from JSON. More...
 
void read (fs::path _filename)
 Read CompositionAxes from file. More...
 
void read (const jsonParser &json, fs::path filename=fs::path())
 Read CompositionAxes from JSON. More...
 
void write (fs::path _filename)
 Write CompositionAxes to file. More...
 
void write (jsonParser &json) const
 Write CompositionAxes to JSON. More...
 
void select (std::string key)
 Set this->curr using key. More...
 

Public Attributes

std::map< std::string,
CompositionConverter
standard
 
std::map< std::string,
CompositionConverter
custom
 
bool has_current_axes = false
 
std::string curr_key
 
CompositionConverter curr
 
fs::path filename
 
int err_code = 0
 
std::string err_message
 

Constructor & Destructor Documentation

CASM::CompositionAxes::CompositionAxes ( )
inline

Definition at line 67 of file AppIO.hh.

CASM::CompositionAxes::CompositionAxes ( fs::path  _filename)

Read CompositionAxes from file.

  • Stores err_code and err_message for non-fatal errors
  • Catches and throws any exceptions

Definition at line 281 of file AppIO.cc.

CASM::CompositionAxes::CompositionAxes ( const jsonParser json)

Read CompositionAxes from JSON.

Read CompositionAxes from file.

  • Stores err_code and err_message for non-fatal errors
  • Catches and throws any exceptions

Definition at line 289 of file AppIO.cc.

Member Function Documentation

void CASM::CompositionAxes::read ( fs::path  _filename)

Read CompositionAxes from file.

Definition at line 293 of file AppIO.cc.

void CASM::CompositionAxes::read ( const jsonParser json,
fs::path  filename = fs::path() 
)

Read CompositionAxes from JSON.

Definition at line 307 of file AppIO.cc.

void CASM::CompositionAxes::select ( std::string  key)

Set this->curr using key.

Definition at line 372 of file AppIO.cc.

void CASM::CompositionAxes::write ( fs::path  _filename)

Write CompositionAxes to file.

Definition at line 339 of file AppIO.cc.

void CASM::CompositionAxes::write ( jsonParser json) const

Write CompositionAxes to JSON.

Definition at line 351 of file AppIO.cc.

Member Data Documentation

CompositionConverter CASM::CompositionAxes::curr

Definition at line 95 of file AppIO.hh.

std::string CASM::CompositionAxes::curr_key

Definition at line 94 of file AppIO.hh.

std::map<std::string, CompositionConverter> CASM::CompositionAxes::custom

Definition at line 92 of file AppIO.hh.

int CASM::CompositionAxes::err_code = 0

Definition at line 98 of file AppIO.hh.

std::string CASM::CompositionAxes::err_message

Definition at line 99 of file AppIO.hh.

fs::path CASM::CompositionAxes::filename

Definition at line 96 of file AppIO.hh.

bool CASM::CompositionAxes::has_current_axes = false

Definition at line 93 of file AppIO.hh.

std::map<std::string, CompositionConverter> CASM::CompositionAxes::standard

Definition at line 91 of file AppIO.hh.


The documentation for this struct was generated from the following files: