Check.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/Check.h
10 
11 #ifndef __Pulsar_Check_h
12 #define __Pulsar_Check_h
13 
14 #include "Pulsar/Archive.h"
15 #include "Registry.h"
16 
17 namespace Pulsar {
18 
19  /* This abstract base class organizes various correction and verification
20  operations. */
21  class Archive::Check : public Reference::Able {
22 
23  public:
24 
25  // Return the name of the check
26  virtual std::string get_name () = 0;
27 
28  // Disable the named check
29  static void disable (const std::string& name);
30 
31  // Stupid hack to make sure the Check registry gets
32  // linked in.
33  static void ensure_linkage ();
34 
35  protected:
36 
37  };
38 
39 }
40 
41 #endif
static List & get_registry()
unsigned size() const
void erase(unsigned i)
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17