CASM  1.1.0
A Clusters Approach to Statistical Mechanics
api.hh
Go to the documentation of this file.
1 #include <iostream>
2 #include <sstream>
3 
9 typedef struct cPrimClex cPrimClex;
10 
12 typedef struct costream costream;
13 
14 extern "C" {
15 
17 
19 
21 
23 
25 
26 unsigned long casm_ostringstream_size(costream *ptr);
27 
28 char *casm_ostringstream_strcpy(costream *ptr, char *c_str);
29 
31 
33 
35 
37  bool read_settings, bool read_composition,
38  bool read_chem_ref, bool read_configs,
39  bool clear_clex);
40 
41 void casm_command_list(costream *ostringstream_log);
42 
43 int casm_capi(char *args, cPrimClex *primclex, char *root, costream *log,
44  costream *err_log);
45 }
46 
costream * casm_ostringstream_new()
Definition: api.cc:27
char * casm_ostringstream_strcpy(costream *ptr, char *c_str)
Definition: api.cc:40
int casm_capi(char *args, cPrimClex *primclex, char *root, costream *log, costream *err_log)
Definition: api.cc:88
costream * casm_nullstream_new()
struct costream costream
For std::ostream*.
Definition: api.hh:12
cPrimClex * casm_primclex_new(char *path, costream *log, costream *err_log)
Definition: api.cc:48
struct cPrimClex cPrimClex
For CASM::PrimClex*.
Definition: api.hh:9
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: api.cc:60
unsigned long casm_ostringstream_size(costream *ptr)
Definition: api.cc:35
void casm_primclex_delete(cPrimClex *ptr)
Definition: api.cc:56
void casm_command_list(costream *ostringstream_log)
Print to log the recognized casm commands as a JSON array.
Definition: api.cc:73
cPrimClex * casm_primclex_null()
Definition: api.cc:46
void casm_ostringstream_delete(costream *ptr)
Definition: api.cc:31
costream * casm_STDOUT()
Definition: api.cc:19
costream * casm_STDERR()
Definition: api.cc:21
PrimClex * primclex
Definition: settings.cc:135
Log & log
Definition: settings.cc:139
Log & err_log
Definition: settings.cc:140