ObsDescription.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2014 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/ObsDescription.h
10 
11 #ifndef __ObsDescription_h
12 #define __ObsDescription_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 
16 namespace Pulsar {
17 
19  class ObsDescription : public Archive::Extension {
20 
21  public:
22 
25 
28 
30  ObsDescription* clone () const;
31 
33  void load (FILE*);
34 
36  void unload (FILE*) const;
37 
39  void set_text (const std::string& t) { text = t; }
40 
42  std::string get_text () const { return text; }
43 
44  protected:
45 
46  std::string text;
47  };
48 
49 }
50 
51 #endif
void load(FILE *)
Load from an open stream.
Definition: ObsDescription.C:32
ObsDescription()
Default constructor.
Definition: ObsDescription.C:14
Stores pulsar parameters as uninterpreted text.
Definition: ObsDescription.h:24
Able & operator=(const Able &)
std::string get_text() const
Get the text.
Definition: ObsDescription.h:52
ObsDescription * clone() const
Clone method.
Definition: ObsDescription.C:26
void set_text(const std::string &t)
Set the text.
Definition: ObsDescription.h:49
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void unload(FILE *) const
Unload to an open stream.
Definition: ObsDescription.C:41

Generated using doxygen 1.8.17