LoadToFITSN.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2014 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __baseband_dsp_LoadToFITSN_h
10 #define __baseband_dsp_LoadToFITSN_h
11 
12 #include "dsp/LoadToFITS.h"
13 #include "dsp/MultiThread.h"
14 
15 class ThreadContext;
16 
17 namespace dsp {
18 
19  class OutputFileShare;
20 
22  class LoadToFITSN : public MultiThread
23  {
24 
25  public:
26 
29 
31  void set_nthread (unsigned);
32 
35 
37  void share ();
38 
40  void finish ();
41 
42  protected:
43 
45 
47 
50 
52  virtual LoadToFITS* new_thread ();
53 
54  LoadToFITS* at (unsigned index);
55 
56  };
57 
58 }
59 
60 #endif // !defined(__LoadToFITSN_h)
61 
62 
63 
64 
65 
void share()
Setup sharing.
Definition: LoadToFITSN.C:73
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Share one OutputFile among multiple processing threads.
Definition: OutputFileShare.h:35
Multiple pipeline threads.
Definition: MultiThread.h:21
void set_nthread(unsigned)
Set the number of thread to be used.
Definition: LoadToFITSN.C:33
Load, unpack, filterbank, re-digitize, and write to FITS.
Definition: LoadToFITS.h:71
virtual LoadToFITS * new_thread()
The creator of new LoadToFil threads.
Definition: LoadToFITSN.C:110
Multiple LoadToFITS threads.
Definition: LoadToFITSN.h:22
LoadToFITSN(LoadToFITS::Config *)
Constructor.
Definition: LoadToFITSN.C:26
Reference::To< LoadToFITS::Config > configuration
Configuration parameters.
Definition: LoadToFITSN.h:46
Reference::To< OutputFileShare > output_file
OutputFile sharing.
Definition: LoadToFITSN.h:49
A single LoadToFITS thread.
Definition: LoadToFITS.h:29
void finish()
Finish by ensuring that all buffered outputs are flushed.
Definition: LoadToFITSN.C:96
void set_configuration(LoadToFITS::Config *)
Set the configuration to be used in prepare and run.
Definition: LoadToFITSN.C:63
unsigned nthread

Generated using doxygen 1.8.17