ParametersLookup.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2007 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Util/tempo/Pulsar/ParametersLookup.h
10
11#ifndef __PulsarParametersLookup_h
12#define __PulsarParametersLookup_h
13
14#include "Pulsar/Parameters.h"
15
16namespace Pulsar {
17
20
21 public:
22
24 Lookup ();
25
27 std::string get_param (const std::string& param, const std::string name) const;
28
30 Parameters* operator() (const std::string& psrname) const;
31
33 void add_path (const std::string&);
34
36 void add_extension (const std::string&);
37
38 protected:
39
40 std::vector<std::string> path;
41 std::vector<std::string> ext;
42
43 };
44
45}
46
47#endif
Looks for pulsar parameters in various places.
Definition ParametersLookup.h:19
Lookup()
Default constructor.
Definition ParametersLookup.C:22
Parameters * operator()(const std::string &psrname) const
Factory returns new Parameters for specified pulsar name.
Definition ParametersLookup_operator.C:25
void add_path(const std::string &)
Add a directory to include in the search.
Definition ParametersLookup.C:53
std::string get_param(const std::string &param, const std::string name) const
Return a single parameter from the catalogue.
Definition ParametersLookup.C:58
void add_extension(const std::string &)
Add a filename extension to include in the search.
Definition ParametersLookup.C:40
Storage of pulsar parameters used to create a Predictor.
Definition Parameters.h:23
Manages Reference::To references to the instance.
Definition ReferenceAble.h:35

Generated using doxygen 1.14.0