CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
casm_functions.hh File Reference
#include <wordexp.h>
#include "casm/CASM_global_definitions.hh"
#include "casm/casm_io/Log.hh"

Go to the source code of this file.

Classes

struct  CASM::CommandArgs
 Data structure holding basic CASM command info. More...
 

Namespaces

 CASM
 Main CASM namespace.
 

Macros

#define ERR_INVALID_ARG   1
 
#define ERR_UNKNOWN   2
 
#define ERR_NO_PROJ   3
 
#define ERR_INVALID_INPUT_FILE   4
 
#define ERR_MISSING_INPUT_FILE   5
 
#define ERR_EXISTING_FILE   6
 
#define ERR_MISSING_DEPENDS   7
 
#define ERR_OTHER_PROJ   8
 

Typedefs

typedef std::function< int(const
CommandArgs &)> 
CASM::Command
 
typedef std::map< std::string,
Command > 
CASM::CommandMap
 

Functions

CommandMap & CASM::command_map ()
 Return static CommandMap containing all CASM API commands. More...
 
int CASM::casm_api (const CommandArgs &args)
 Executes CASM commands specified by args. More...
 
PrimClex & CASM::make_primclex_if_not (const CommandArgs &args, std::unique_ptr< PrimClex > &uniq_primclex)
 If !_primclex, construct new PrimClex stored in uniq_primclex, then return reference to existing or constructed PrimClex. More...
 
PrimClex & CASM::make_primclex_if_not (const CommandArgs &args, std::unique_ptr< PrimClex > &uniq_primclex, Log &status_log)
 If !_primclex, construct new PrimClex stored in uniq_primclex, then return reference to existing or constructed PrimClex. More...
 
std::ostream & CASM::make_ostream_if (bool output, std::ostream &sout, std::unique_ptr< std::ostream > &fout, fs::path out_path, bool gzip)
 Return a reference to proper std::ostream. More...
 
int CASM::help_command (const CommandArgs &args)
 Print CASM help info to args.log. More...
 
int CASM::bset_command (const CommandArgs &args)
 
int CASM::composition_command (const CommandArgs &args)
 
int CASM::enum_command (const CommandArgs &args)
 
int CASM::files_command (const CommandArgs &args)
 
int CASM::format_command (const CommandArgs &args)
 
int CASM::import_command (const CommandArgs &args)
 
int CASM::init_command (const CommandArgs &args)
 
int CASM::monte_command (const CommandArgs &args)
 
int CASM::perturb_command (const CommandArgs &args)
 
int CASM::query_command (const CommandArgs &args)
 
int CASM::ref_command (const CommandArgs &args)
 
int CASM::rm_command (const CommandArgs &args)
 
int CASM::run_command (const CommandArgs &args)
 
int CASM::select_command (const CommandArgs &args)
 
int CASM::settings_command (const CommandArgs &args)
 
int CASM::status_command (const CommandArgs &args)
 
int CASM::super_command (const CommandArgs &args)
 
int CASM::sym_command (const CommandArgs &args)
 
int CASM::update_command (const CommandArgs &args)
 
int CASM::version_command (const CommandArgs &args)
 
int CASM::view_command (const CommandArgs &args)