FeedExtension.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/FeedExtension.h
10 
11 #ifndef __FeedExtension_h
12 #define __FeedExtension_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 #include "Jones.h"
16 
17 namespace Pulsar
18 {
19 
21 
24  class FeedExtension : public Archive::Extension
25  {
26 
27  public:
28 
30  FeedExtension ();
31 
34 
36  const FeedExtension& operator= (const FeedExtension&);
37 
39  ~FeedExtension ();
40 
42  FeedExtension* clone () const { return new FeedExtension( *this ); }
43 
46  class Interface;
47 
49  Jones<double> get_transformation () const { return transformation; }
50 
52  void set_transformation (const Jones<double>& x) { transformation = x; }
53 
54  protected:
55 
56  Jones<double> transformation;
57 
58  };
59 
60 
61 }
62 
63 #endif
Stores a known feed transformation.
Definition: FeedExtension.h:29
const FeedExtension & operator=(const FeedExtension &)
Operator =.
Definition: FeedExtension.C:26
Jones< double > get_transformation() const
Return the transformation.
Definition: FeedExtension.h:59
virtual void set_instance(C *c)
void parse(const std::string &line)
Parse a feed parameter from a line of text.
Definition: Feed_load.C:23
TextInterface::Parser * get_interface()
Get the a text interface.
Definition: FeedExtension.C:50
FeedExtension * clone() const
Clone method.
Definition: FeedExtension.h:52
~FeedExtension()
Destructor.
Definition: FeedExtension.C:33
void load(const std::string &filename)
Parse the feed parameters from the specified file.
Definition: Feed_load.C:16
void set_transformation(const Jones< double > &x)
Set the transformation.
Definition: FeedExtension.h:62
FeedExtension()
Default constructor.
Definition: FeedExtension.C:12
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17