CASM  1.1.0
A Clusters Approach to Statistical Mechanics
ccasm.cpp
Go to the documentation of this file.
1 #include <iostream>
3 #include "casm/casm_io/Log.hh"
4 
5 using namespace CASM;
6 
7 // ///////////////////////////////////////
8 // ccasm main:
9 
10 int main(int argc, char *argv[]) {
11  try {
12  PrimClex *_primclex = nullptr;
13  CommandArgs args(argc, argv, _primclex, fs::path());
14 
15  return casm_api(args);
16  }
17  catch(std::exception const &e) {
18  log() << "Uncaught exception: \n" << e.what();
19  }
20  return 1;
21 }
int main(int argc, char *argv[])
Definition: ccasm.cpp:10
PrimClex is the top-level data structure for a CASM project.
Definition: PrimClex.hh:55
int casm_api(const CommandArgs &args)
Executes CASM commands specified by args.
Main CASM namespace.
Definition: APICommand.hh:8
Log & log()
Definition: Log.hh:424
Data structure holding basic CASM command info.