FACT++  1.0
template<class T >
int RunShell ( Configuration conf)

Definition at line 625 of file fitsloader.cc.

References Configuration::Get(), Configuration::GetName(), RunThread(), FitsLoader::SetupConfig(), StateMachineImp::Stop(), and t.

626 {
627  static T shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);
628 
629  WindowLog& wout = shell.GetStreamOut();
630 
631  FitsLoader loader(wout);
632  loader.SetupConfig(conf);
633  shell.SetReceiver(loader);
634 
635  boost::thread t(boost::bind(RunThread, &loader));
636 
637  shell.Run();
638 
639  loader.Stop();
640 
641  t.join();
642 
643  return 0;
644 }
A C++ ostream to an ncurses window supporting attributes and colors.
Definition: WindowLog.h:50
T Get(const std::string &var)
void RunThread(FitsLoader *loader)
Definition: fitsloader.cc:619
Load a given Fits file and table, and dump selected columns if requested.
Definition: fitsloader.cc:44
TT t
Definition: test_client.c:26
const std::string & GetName() const

+ Here is the call graph for this function: