The VisAO Camera
framewriter_main.cpp
Go to the documentation of this file.
1 /************************************************************
2 * framewriter_main.cpp
3 *
4 * Author: Jared R. Males (jrmales@email.arizona.edu)
5 *
6 * The main program for the frame writer.
7 *
8 * Developed as part of the Magellan Adaptive Optics system.
9 ************************************************************/
10 
11 /** \file framewriter_main.cpp
12  * \author Jared R. Males
13  * \brief The main program for the frame writer.
14  *
15 */
16 
17 #include "framewriter.h"
18 
19 #define VISAO_APP_TYPE VisAO::framewriter<short>
20 #define VISAO_APP_NAME "framewriter47"
21 //#define VISAO_APP_CONFFILE "conf/framewriter47.conf"
22 #include "VisAO_main.h"
23 
24 int main(int argc, char **argv)
25 {
26  return VisAO_main(argc, argv);
27 }
28 
29 /*
30 int TimeToDie;
31 
32 int main(int argc, char **argv)
33 {
34  TimeToDie = 0;
35 
36  try
37  {
38  VisAO::framewriter * fw;
39 
40  //fw = new framewriter;
41  if(argc > 1)
42  {
43  fw = new VisAO::framewriter(argc,argv);
44  }
45  else
46  {
47  ostringstream oss;
48  oss << getenv("VISAO_ROOT") << "conf/framewriter.conf";
49  fw = new VisAO::framewriter(oss.str());
50  }
51 
52  fw->start();
53 
54  delete fw;
55 
56  return 0;
57 
58  }
59  catch(...)
60  {
61  std::cerr << "Exception caught\n";
62  Logger::get()->log( Logger::LOG_LEV_FATAL, "%s:%d: %s", __FILE__, __LINE__, "exception caught trying to start framewriter");
63  return -1;
64  }
65 }
66 */
Declarations for a class for writing image frames from shared memory to disk.
The main program for a VisAO application.