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
17namespace 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:22
Archive()
Default constructor.
Definition Archive.C:67
std::string get_interface_name() const
Get the interface name.
Definition ArchiveInterface.h:42
void set_instance(Archive *)
Set the instance to which this interface interfaces.
Definition ArchiveInterface.C:116
~Interface()
Desctructor.
Definition ArchiveInterface.C:110
static unsigned get_instance_count()
Get the number of Archive::Interface instances.
Definition ArchiveInterface.C:19
Interface(Archive *=0)
Default constructor that takes an optional instance.
Definition ArchiveInterface.C:31
TextInterface::Parser * clone()
clone this text interface
Definition ArchiveInterface.C:141
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0