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 
16 namespace Pulsar {
17 
19  class Parameters::Lookup : public Reference::Able {
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
@ Pulsar
A pulsar.
Definition: Types.h:63
void add_extension(const std::string &)
Add a filename extension to include in the search.
Definition: ParametersLookup.C:40
A convenient exception handling class.
Definition: Error.h:54
Lookup()
Default constructor.
Definition: ParametersLookup.C:22
Template class manages Reference::Able objects.
Definition: Reference.h:74
static void children(std::vector< Reference::To< Parameters > > &)
Factory helper creates a vector of pointers to derived class instances.
Definition: Parameters_children.C:17
Stores pulsar parameters as uninterpreted text.
Definition: TextParameters.h:24
Manages Reference::To references to the instance.
Definition: ReferenceAble.h:40
Parameters * operator()(const std::string &psrname) const
Factory returns new Parameters for specified pulsar name.
Definition: ParametersLookup_operator.C:25
std::string get_param(const std::string &param, const std::string name) const
Return a single parameter from the catalogue.
Definition: ParametersLookup.C:58
const std::string get_message() const
Get the error message.
Definition: Error.C:133
Storage of pulsar parameters used to create a Predictor.
Definition: Parameters.h:28
void add_path(const std::string &)
Add a directory to include in the search.
Definition: ParametersLookup.C:53

Generated using doxygen 1.8.17