TimeAppend.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/More/General/Pulsar/TimeAppend.h
10 
11 #ifndef _Pulsar_TimeAppend_H
12 #define _Pulsar_TimeAppend_H
13 
14 #include "Pulsar/Append.h"
15 
16 namespace Pulsar {
17 
19  class TimeAppend : public Append {
20 
21  public:
22 
25 
27  virtual void check (Archive* into, const Archive* from);
28 
29  bool chronological;
30  float max_overlap;
31 
32  protected:
33 
35  virtual bool stop (Archive* into, const Archive* from);
36 
38  virtual void combine (Archive* into, Archive* from);
39 
40  };
41 
42 }
43 
44 #endif
45 
virtual void check(Archive *into, const Archive *from)
Throw an exception if there is any reason to not call append.
Definition: Append.C:65
virtual void append(Archive *, const Archive *)=0
Add two Archive instances that have the same IntegrationOrder.
void Append(const DigitiserCounts &src)
Append the counts from another DigitiserCounts to this one.
Definition: DigitiserCounts.C:83
virtual void check(Archive *into, const Archive *from)
Throw an exception if there is a reason to not append.
Definition: TimeAppend.C:89
The primary interface to pulsar observational data.
Definition: Archive.h:45
void sort(StrictWeakOrdering comp)
Sort the Integrations according to the specified order.
Definition: IntegrationManagerExpert.h:66
const ExtensionType * get() const
Template method searches for an Extension of the specified type.
virtual bool stop(Archive *into, const Archive *from)
Return true if there is a benign reason to stop.
Definition: Append.C:41
virtual IntegrationOrder * clone() const =0
Clone method.
TimeAppend()
Default constructor.
Definition: TimeAppend.C:43
Configuration option.
Definition: Config.h:73
void manage(IntegrationManager *more_subints)
Append use_Integration modified Integration objects to instance.
Definition: IntegrationManagerExpert.h:53
Stores digitizer histograms.
Definition: DigitiserCounts.h:25
Expert * expert()
Provide access to the expert interface.
Definition: Archive.C:40
MJD end_time() const
Return the MJD at the end of the last sub-integration.
Definition: Archive.C:308
MJD start_time() const
Return the MJD at the start of the first sub-integration.
Definition: Archive.C:299
virtual bool stop(Archive *into, const Archive *from)
Return true if there is a benign reason to stop.
Definition: TimeAppend.C:49
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.
std::string get_IndexState() const
Return a string describing the type of indexing used.
Definition: IntegrationOrder.C:40
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Alternative ways of ordering Integration instances.
Definition: IntegrationOrder.h:29
virtual void combine(Archive *into, Archive *from)
Add the data in 'from' to 'into'.
Definition: TimeAppend.C:107
Algorithms that combine Integration data.
Definition: TimeAppend.h:24

Generated using doxygen 1.8.17