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
16namespace Pulsar {
17
18 class Interpreter;
19
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
Describes application command line options.
Definition Application.h:159
The primary interface to pulsar observational data.
Definition Archive.h:46
Pulsar data processing command language interpreter.
Definition Interpreter.h:52
void set_output_each(bool)
The application produces an output for each input.
Definition UnloadOptions.C:22
std::string get_output_filename(const Archive *)
Return the output filename for the input.
Definition UnloadOptions.C:28
virtual void setup()
Verify setup.
Definition UnloadOptions.C:75
bool get_unload_setup() const
Return true if one or more unload options have been set.
Definition UnloadOptions.C:70
virtual void finish(Archive *)
Unload the archive.
Definition UnloadOptions.C:95
virtual void add_options(CommandLine::Menu &)
Add options to the menu.
Definition UnloadOptions.C:51
UnloadOptions()
Default constructor.
Definition UnloadOptions.C:15
void set_extension(const std::string &)
Set the extension added to output filenames.
Definition UnloadOptions.C:41
void set_directory(const std::string &)
Set the directory to which output files will be written.
Definition UnloadOptions.C:46
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0