TapeInfo.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/TapeInfo.h
10 
11 #ifndef __Pulsar_TapeInfo_h
12 #define __Pulsar_TapeInfo_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 
16 namespace Pulsar {
17 
19  class TapeInfo : public Archive::Extension {
20 
21  public:
22 
25 
27  TapeInfo (const TapeInfo&);
28 
30  const TapeInfo& operator= (const TapeInfo&);
31 
33  ~TapeInfo ();
34 
36  TapeInfo* clone () const { return new TapeInfo( *this ); }
37 
39  int get_file_number() const { return file_number; }
40 
42  void set_file_number(int number) { file_number = number; }
43 
45  std::string get_tape_label() const { return tape_label; }
46 
48  void set_tape_label(std::string label) { tape_label = label; }
49 
50  protected:
51 
52  std::string tape_label;
53  int file_number;
54 
55  };
56 
57 
58 }
59 
60 #endif
const TapeInfo & operator=(const TapeInfo &)
Operator =.
Definition: TapeInfo.C:26
Stores information about the tape on which the data were recorded.
Definition: TapeInfo.h:24
std::string get_tape_label() const
Get tape label for raw data (FB only)
Definition: TapeInfo.h:55
void set_file_number(int number)
Set file number for raw data (FB only)
Definition: TapeInfo.h:52
TapeInfo()
Default constructor.
Definition: TapeInfo.C:10
TapeInfo * clone() const
Clone method.
Definition: TapeInfo.h:46
void set_tape_label(std::string label)
Set tape label for raw data (FB only)
Definition: TapeInfo.h:58
int get_file_number() const
Get file number for raw data (FB only)
Definition: TapeInfo.h:49
Defines the PSRCHIVE library.
Definition: CalSource.h:17
~TapeInfo()
Destructor.
Definition: TapeInfo.C:34

Generated using doxygen 1.8.17