FITSSUBHdrExtension.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by David Smith
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/FITSSUBHdrExtension.h
10 
11 #ifndef __Pulsar_FITSSUBHdrExtension_h
12 #define __Pulsar_FITSSUBHdrExtension_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 #include <TextInterface.h>
16 
17 
18 
19 namespace Pulsar
20 {
21 
23  class FITSSUBHdrExtension : public Archive::Extension
24  {
25  public:
28 
31 
33  const FITSSUBHdrExtension& operator= (const FITSSUBHdrExtension& extension);
34 
37 
39  FITSSUBHdrExtension* clone () const { return new FITSSUBHdrExtension( *this ); }
40 
43 
44  // Text interface to a FITSSUBHdrExtension
45  class Interface : public TextInterface::To<FITSSUBHdrExtension>
46  {
47  public:
48  Interface( FITSSUBHdrExtension *s_instance = NULL );
49  };
50 
52  std::string get_short_name () const { return "sub"; }
53 
54  std::string get_int_type( void ) const { return int_type; }
55  std::string get_int_unit( void ) const { return int_unit; }
56  double get_tsamp( void ) const { return tsamp; }
57  int get_nbits( void ) const { return nbits; }
58  int get_nch_strt( void ) const { return nch_strt; }
59  int get_nsblk( void ) const { return nsblk; }
60  long get_nrows( void ) const { return nrows; }
61  double get_zero_off( void ) const { return zero_off; }
62  int get_signint( void ) const { return signint; }
63 
64  void set_int_type( std::string s_int_type ) { int_type = s_int_type; }
65  void set_int_unit( std::string s_int_unit ) { int_unit = s_int_unit; }
66  void set_tsamp( double s_tsamp ) { tsamp = s_tsamp; }
67  void set_nbits( int s_nbits ) { nbits = s_nbits; }
68  void set_nch_strt( int s_nch_strt ) { nch_strt = s_nch_strt; }
69  void set_nsblk( int s_nsblk ) { nsblk = s_nsblk; }
70  void set_nrows( int s_nrows ) { nrows = s_nrows; }
71  void set_zero_off( float s_zero_off ) { zero_off = s_zero_off; }
72  void set_signint( bool s_signint ) { signint = s_signint; }
73 
74  private:
75  std::string int_type;
76  std::string int_unit;
77  double tsamp;
78  int nbits;
79  int nch_strt;
80  int nsblk;
81  long nrows;
82  double zero_off;
83  int signint;
84  };
85 }
86 
87 #endif
~FITSSUBHdrExtension()
Destructor.
Definition: FITSSUBHdrExtension.C:57
std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition: FITSSUBHdrExtension.h:62
TextInterface::Parser * get_interface()
Get the text interface.
Definition: FITSSUBHdrExtension.C:61
FITSSUBHdrExtension * clone() const
Clone method.
Definition: FITSSUBHdrExtension.h:49
Stores PSRFITS SUBINT header parameters.
Definition: FITSSUBHdrExtension.h:28
const FITSSUBHdrExtension & operator=(const FITSSUBHdrExtension &extension)
Operator =.
Definition: FITSSUBHdrExtension.C:41
FITSSUBHdrExtension()
Default constructor.
Definition: FITSSUBHdrExtension.C:19
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17