HasChannels.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2024 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/HasChannels.h
10 
11 #ifndef __Base_Extensions_Pulsar_HasChannels_h
12 #define __Base_Extensions_Pulsar_HasChannels_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 
16 namespace Pulsar {
17 
19 
20  class HasChannels : public Pulsar::Archive::Extension {
21 
22  public:
23 
24  HasChannels (const char* name) : Archive::Extension(name) {}
25 
27  virtual void set_nchan (unsigned nchan) = 0;
29  virtual unsigned get_nchan () const = 0;
30 
32  virtual void remove_chan (unsigned first, unsigned last) = 0;
33  };
34 
35 }
36 
37 #endif
virtual void set_nchan(unsigned nchan)=0
Set the number of frequency channels.
virtual unsigned get_nchan() const =0
Get the number of frequency channels.
Extension(const char *name)
Construct with a name.
Definition: Archive.C:137
virtual void remove_chan(unsigned first, unsigned last)=0
Remove the inclusive range of channels.
Definition: ArchiveExtension.h:28
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17