PatchTime.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2009 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/PatchTime.h
10
11#ifndef _Pulsar_PatchTime_H
12#define _Pulsar_PatchTime_H
13
14#include "Pulsar/Contemporaneity.h"
15
16namespace Pulsar {
17
18 class Archive;
19
21 class PatchTime : public Algorithm
22 {
23
24 public:
25
27 PatchTime ();
28
30 void operate (Archive* A, Archive* B);
31
34
36 void set_minimum_contemporaneity (double min);
37
38 protected:
39
40 Reference::To<Contemporaneity> contemporaneity_policy;
41
42 double minimum_contemporaneity;
43 };
44
45}
46
47#endif
Data manipulation implementations.
Definition Algorithm.h:19
The primary interface to pulsar observational data.
Definition Archive.h:46
Evaluates the contemporaneity of Integrations from two Archives.
Definition Contemporaneity.h:24
void set_contemporaneity_policy(Contemporaneity *)
Set the policy used to judge contemporaneity.
Definition PatchTime.C:26
PatchTime()
Default constructor.
Definition PatchTime.C:20
void set_minimum_contemporaneity(double min)
Set the minimum contemporaneity required for each sub-integration.
Definition PatchTime.C:32
void operate(Archive *A, Archive *B)
Add to A whatever is missing with respect to B, and vice versa.
Definition PatchTime.C:65
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0