BinLngAscOrder.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Aidan Hotan
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/BinLngAscOrder.h
10 
11 #ifndef __BinLngAscOrder_h
12 #define __BinLngAscOrder_h
13 
14 #include "Pulsar/IntegrationOrder.h"
15 
16 namespace Pulsar {
17 
23  class BinLngAscOrder : public Pulsar::IntegrationOrder {
24 
25  public:
26 
27  // These are the standard Archive::Extension methods:
28 
30  BinLngAscOrder ();
31 
33  ~BinLngAscOrder ();
34 
36  BinLngAscOrder (const BinLngAscOrder& extension);
37 
39  const BinLngAscOrder& operator= (const BinLngAscOrder& extension);
40 
42  IntegrationOrder* clone () const;
43 
44  void organise (Archive*, unsigned);
45  void append (Archive*, const Archive*);
46  void combine (Archive*, unsigned);
47 
48  };
49 
50 }
51 
52 #endif
BinLngAscOrder()
Default constructor.
Definition: BinLngAscOrder.C:15
IntegrationOrder * clone() const
Clone method.
Definition: BinLngAscOrder.C:48
virtual void resize(unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
Resize the Integration vector with new_Integration instances.
Definition: Archive_resize.C:26
void zero()
Zero all the profiles, keeping all else the same.
Definition: Integration.C:185
const BinLngAscOrder & operator=(const BinLngAscOrder &extension)
Operator =.
Definition: BinLngAscOrder.C:39
Expert * expert()
Provide access to the expert interface.
Definition: Integration.C:162
virtual MJD get_epoch() const =0
Get the epoch of the rising edge of bin zero.
std::vector< double > indices
Storage for the actual Integration indices.
Definition: IntegrationOrder.h:103
double get_centre_frequency(unsigned ichan) const
Get the Profile centre frequency attribute of the given channel.
Definition: Integration.C:359
virtual unsigned get_nsubint() const =0
Get the number of sub-integrations stored in the file.
The primary interface to pulsar observational data.
Definition: Archive.h:45
const Parameters * get_ephemeris() const
Return a pointer to the current archive ephemeris.
Definition: Archive.C:281
void append(Archive *, const Archive *)
Add two Archive instances that have the same IntegrationOrder.
Definition: BinLngAscOrder.C:152
virtual Integration * new_Integration(const Integration *copy=0)=0
Construct new Integration instance.
void copy(const Integration *subint, bool management=true)
Copy the data from 'from' into 'this'.
Definition: IntegrationExpert.h:102
Integration * get_Integration(unsigned subint)
Return pointer to the specified Integration.
Definition: IntegrationManager.C:41
virtual std::string get_telescope() const =0
Get the name of the telescope used.
void combine(const Integration *from)
Combine the data from 'from' into 'this'.
Definition: IntegrationExpert.h:106
void organise(Archive *, unsigned)
Re-order the Integrations into the desired state.
Definition: BinLngAscOrder.C:55
std::string IndexState
An index state identifier string.
Definition: IntegrationOrder.h:97
static unsigned verbose
A verbosity flag that can be set for debugging purposes.
Definition: IntegrationManager.h:38
virtual Archive * clone() const =0
Return a new copy constructed instance equal to this.
~BinLngAscOrder()
Destructor.
Definition: BinLngAscOrder.C:23
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void combine(Archive *, unsigned)
Definition: BinLngAscOrder.C:158
std::string Unit
The units (if any) of this state.
Definition: IntegrationOrder.h:100
Alternative ways of ordering Integration instances.
Definition: IntegrationOrder.h:29
Definition: BinLngAscOrder.h:28

Generated using doxygen 1.8.17