ArchiveInterface.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/ArchiveInterface.h
10 
11 #ifndef __Pulsar_ArchiveTI_h
12 #define __Pulsar_ArchiveTI_h
13 
14 #include "Pulsar/Archive.h"
15 #include "TextInterface.h"
16 
17 namespace Pulsar
18 {
19 
21  class Archive::Interface : public TextInterface::To<Archive>
22  {
23 
24  public:
25 
27  static unsigned get_instance_count ();
28 
30  Interface ( Archive* = 0 );
31 
33  ~Interface();
34 
36  void set_instance (Archive*) ;
37 
40 
42  std::string get_interface_name() const { return "Archive::Interface"; }
43 
44  };
45 
46 }
47 
48 
49 #endif
Provides a text interface to get and set Archive attributes.
Definition: ArchiveInterface.h:26
virtual std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition: Archive.C:150
Archive()
Default constructor.
Definition: Archive.C:67
The primary interface to pulsar observational data.
Definition: Archive.h:45
virtual void set_instance(C *c)
static unsigned get_instance_count()
Get the number of Archive::Interface instances.
Definition: ArchiveInterface.C:19
void set_instance(Archive *)
Set the instance to which this interface interfaces.
Definition: ArchiveInterface.C:99
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
virtual TextInterface::Parser * get_interface()
Return a text interface that can be used to access this instance.
Definition: ArchiveExtension.h:47
~Interface()
Desctructor.
Definition: ArchiveInterface.C:93
std::string get_interface_name() const
Get the interface name.
Definition: ArchiveInterface.h:52
TextInterface::Parser * clone()
clone this text interface
Definition: ArchiveInterface.C:124
Definition: ArchiveExtension.h:28
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Interface(Archive *=0)
Default constructor that takes an optional instance.
Definition: ArchiveInterface.C:21
PSRFITS parameter names for Archive TextInterface attribute names.
Definition: FITSAlias.h:24

Generated using doxygen 1.8.17