Functions
wire-cell.cxx File Reference
#include "WireCellApps/Main.h"
#include "WireCellUtil/Exceptions.h"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 11 of file wire-cell.cxx.

12 {
13  Main m;
14  int rc = 0;
15 
16  try {
17  rc = m.cmdline(argc, argv);
18  if (rc) { return rc; }
19  m.initialize();
20  m();
21  }
22  catch (Exception& e) {
23  cerr << errstr(e) << endl;
24  return 1;
25  }
26  return 0;
27 }
static const double m
Definition: Units.h:79
int cmdline(int argc, char *argv[])
Definition: Main.cxx:38
#define errstr(e)
Definition: Exceptions.h:26
const double e
The base wire cell exception.
Definition: Exceptions.h:31
void initialize()
Definition: Main.cxx:184
QTextStream & endl(QTextStream &s)