UnloadOptions.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/UnloadOptions.h
10 
11 #ifndef __Pulsar_UnloadOptions_h
12 #define __Pulsar_UnloadOptions_h
13 
14 #include "Pulsar/Application.h"
15 
16 namespace Pulsar {
17 
18  class Interpreter;
19 
21  class UnloadOptions : public Application::Options
22  {
23  public:
24 
27 
29  void set_output_each (bool);
30 
32  std::string get_output_filename (const Archive*);
33 
35  void set_extension (const std::string&);
36  std::string get_extension () const { return extension; }
37 
39  void set_directory (const std::string&);
40  std::string get_directory () const { return directory; }
41 
43  bool get_unload_setup () const;
44 
46  virtual void add_options (CommandLine::Menu&);
47 
49  virtual void setup ();
50 
52  virtual void finish (Archive*);
53 
54  private:
55 
57  bool output_each;
58 
60  bool overwrite;
61 
63  std::string extension;
64 
66  std::string directory;
67 
68  };
69 
70 }
71 
72 #endif
virtual void add_options(CommandLine::Menu &)
Add options to the menu.
Definition: UnloadOptions.C:51
virtual void setup()
Verify setup.
Definition: UnloadOptions.C:75
The primary interface to pulsar observational data.
Definition: Archive.h:45
void set_extension(const std::string &)
Set the extension added to output filenames.
Definition: UnloadOptions.C:41
virtual void add(Item *)
bool get_unload_setup() const
Return true if one or more unload options have been set.
Definition: UnloadOptions.C:70
void set_output_each(bool)
The application produces an output for each input.
Definition: UnloadOptions.C:22
virtual void finish(Archive *)
Unload the archive.
Definition: UnloadOptions.C:95
Defines the PSRCHIVE library.
Definition: CalSource.h:17
UnloadOptions()
Default constructor.
Definition: UnloadOptions.C:15
std::string get_output_filename(const Archive *)
Return the output filename for the input.
Definition: UnloadOptions.C:28
void set_directory(const std::string &)
Set the directory to which output files will be written.
Definition: UnloadOptions.C:46

Generated using doxygen 1.8.17