CASM  1.1.0
A Clusters Approach to Statistical Mechanics
api.cc File Reference
#include "ccasm/api.hh"
#include <wordexp.h>
#include <boost/filesystem.hpp>
#include "casm/app/DirectoryStructure.hh"
#include "casm/app/casm_functions.hh"
#include "casm/app/errors.hh"
#include "casm/casm_io/Log.hh"
#include "casm/casm_io/container/json_io.hh"
#include "casm/casm_io/json/jsonParser.hh"
#include "casm/clex/PrimClex.hh"

Go to the source code of this file.

Functions

costreamcasm_STDOUT ()
 
costreamcasm_STDERR ()
 
costreamcasm_nullstream ()
 
costreamcasm_ostringstream_new ()
 
void casm_ostringstream_delete (costream *ptr)
 
unsigned long casm_ostringstream_size (costream *ptr)
 
char * casm_ostringstream_strcpy (costream *ptr, char *c_str)
 
cPrimClexcasm_primclex_null ()
 
cPrimClexcasm_primclex_new (char *path, costream *log, costream *err_log)
 
void casm_primclex_delete (cPrimClex *ptr)
 
void casm_primclex_refresh (cPrimClex *ptr, costream *log, costream *err_log, bool read_settings, bool read_composition, bool read_chem_ref, bool read_configs, bool clear_clex)
 
void casm_command_list (costream *ostringstream_log)
 Print to log the recognized casm commands as a JSON array. More...
 
int casm_capi (char *args, cPrimClex *primclex, char *root, costream *log, costream *err_log)
 

Function Documentation

◆ casm_capi()

int casm_capi ( char *  args,
cPrimClex primclex,
char *  root,
costream log,
costream err_log 
)

Construct a CommandArgs instance and call casm_api

  • Will construct temporary PrimClex if necessary
  • If primclex is not null, then root is ignored.

Definition at line 88 of file api.cc.

◆ casm_command_list()

void casm_command_list ( costream ostringstream_log)

Print to log the recognized casm commands as a JSON array.

Definition at line 73 of file api.cc.

◆ casm_nullstream()

costream* casm_nullstream ( )

Definition at line 23 of file api.cc.

◆ casm_ostringstream_delete()

void casm_ostringstream_delete ( costream ptr)

Definition at line 31 of file api.cc.

◆ casm_ostringstream_new()

costream* casm_ostringstream_new ( )

Definition at line 27 of file api.cc.

◆ casm_ostringstream_size()

unsigned long casm_ostringstream_size ( costream ptr)

Definition at line 35 of file api.cc.

◆ casm_ostringstream_strcpy()

char* casm_ostringstream_strcpy ( costream ptr,
char *  c_str 
)

Definition at line 40 of file api.cc.

◆ casm_primclex_delete()

void casm_primclex_delete ( cPrimClex ptr)

Definition at line 56 of file api.cc.

◆ casm_primclex_new()

cPrimClex* casm_primclex_new ( char *  path,
costream log,
costream err_log 
)

Definition at line 48 of file api.cc.

◆ casm_primclex_null()

cPrimClex* casm_primclex_null ( )

Definition at line 46 of file api.cc.

◆ casm_primclex_refresh()

void casm_primclex_refresh ( cPrimClex ptr,
costream log,
costream err_log,
bool  read_settings,
bool  read_composition,
bool  read_chem_ref,
bool  read_configs,
bool  clear_clex 
)

Definition at line 60 of file api.cc.

◆ casm_STDERR()

costream* casm_STDERR ( )

Definition at line 21 of file api.cc.

◆ casm_STDOUT()

costream* casm_STDOUT ( )

Definition at line 19 of file api.cc.