tempo++.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2000 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Util/tempo/tempo++.h
10
11#ifndef __TEMPO_PP_H
12#define __TEMPO_PP_H
13
14#include "Pulsar/Parameters.h"
15
16#include "Observatory.h"
17#include "MJD.h"
18#include "Warning.h"
19
20#include <vector>
21
23namespace Tempo
24{
26 int config ();
27
29 const Observatory* observatory (const std::string& telescope_name);
30
32 char code (const std::string& telescope_name);
33
34 // get the tempo version
35 float get_version ();
36
37 // get the specified tempo configuration parameter
38 std::string get_configuration (const std::string& parameter);
39
40 // set the system call used to run tempo
41 void set_system (const std::string& system_call);
42 // get the system call used to run tempo
43 std::string get_system ();
44
45 // convenience overloads
46 void set_system (const std::string& system_call);
47 void set_directory (const std::string& directory);
48
49 // verbosity flag of functions working in the Tempo namespace
50 extern bool verbose;
51 extern bool debug;
52
53 // extension added to temporary Model filenames when working
54 extern std::string extension;
55
56 // default value passed to predict functions
57 extern MJD unspecified;
58
59 // base directory in which tempo will work
60 extern std::string tmpdir;
61
62 // file to which tempo stdout output will be redirected
63 extern std::string stdout_filename;
64
65 // file to which tempo stderr output will be redirected
66 extern std::string stderr_filename;
67
68 // file to which tempo ephemeris files are written
69 extern std::string ephem_filename;
70
71 // used to process warning messages
72 extern Warning warning;
73
75
78 void tempo (const std::string& arguments, const std::string& input);
79
80}
81
82#endif
83
Class for representing modified Julian dates with high precision.
Definition MJD.h:23
Observatory data available from TEMPO.
Definition Observatory.h:21
Handles warning messages in a standardized fashion.
Definition Warning.h:34
Interface to Tempo.
Definition fit.C:22
void tempo(const std::string &arguments, const std::string &input)
Run tempo using the given arguments and input.
Definition tempo++.C:140
char code(const std::string &telescope_name)
Convert a telescope name to a single-character tempo code.
Definition tempo++.C:167
const Observatory * observatory(const std::string &telescope_name)
Return the Observatory data given the telescope name.
Definition Observatory.C:130
int config()
Call this global method to ensure that configuration is loaded.

Generated using doxygen 1.14.0