27 #ifndef __GyotoSpectrometer_H_
28 #define __GyotoSpectrometer_H_
52 class FactoryMessenger;
53 namespace Spectrometer {
85 typedef char const *
kind_t;
124 (FactoryMessenger* fmp) {
126 #ifdef GYOTO_USE_XERCES
127 if (fmp) spectro -> setParameters(fmp);
327 virtual void
kindid(kind_t) ;
337 virtual void
getMidpoints( double data[], std::string unit);
346 virtual double const *
getWidths() const ;
357 virtual void
getWidths( double data[], std::string unit);
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:83
virtual Generic * clone() const =0
Clone an instance.
double * boundaries_
Frequency (in Hz) at the boundaries of the spectral channels.
Definition: GyotoSpectrometer.h:207
virtual size_t const * getChannelIndices() const
Get Generic::chanind_.
virtual double const * getMidpoints() const
Get Generic::midpoints_.
Gyoto::Spectrometer::Subcontractor_t * getSubcontractor(std::string name, int errmode=0)
Query the Spectrometer register.
size_t * chanind_
Indices in boundaries_.
Definition: GyotoSpectrometer.h:214
Tellers tell Listeners when they mutate.
Reference-counting pointers.
void Register(std::string name, Gyoto::Spectrometer::Subcontractor_t *scp)
Register a new Spectrometer kind.
#define size_t
If not defined in .
Definition: GyotoConfig.h:366
char const * kind_t
Type for Spectrometer kind.
Definition: GyotoSpectrometer.h:71
virtual double const * getWidths() const
Get Generic::widths_.
Gyoto ubiquitous macros and typedefs.
size_t nboundaries_
Size of the boundaries_ array.
Definition: GyotoSpectrometer.h:190
kind_t kindid_
Spectrometer kind ID.
Definition: GyotoSpectrometer.h:187
virtual kind_t kindid() const
Get kindid_.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
virtual size_t getNBoundaries() const
Get Generic::nboundaries_.
SmartPointer< Spectrometer::Generic > Subcontractor(FactoryMessenger *fmp)
A template for Subcontractor_t functions.
Definition: GyotoSpectrometer.h:124
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:78
double * widths_
Width of each channel.
Definition: GyotoSpectrometer.h:228
void initRegister()
Initialize the Spectrometer register This must be called once. It initializes Register_ and registers...
Gyoto::Register::Entry * Register_
The Spectrometer register.
SmartPointer< Gyoto::Spectrometer::Generic > Subcontractor_t(Gyoto::FactoryMessenger *)
A function to build instances of a specific Astrobj::Generic sub-class.
Definition: GyotoSpectrometer.h:96
virtual double const * getChannelBoundaries() const
Get Generic::boundaries_.
double * midpoints_
Effective frequency (in Hz) of each spectral channel.
Definition: GyotoSpectrometer.h:221
Object with properties.
Definition: GyotoObject.h:136
virtual size_t nSamples() const
Get Generic::nsamples_.
Listen to me and I'll warn you when I change.
Definition: GyotoHooks.h:82
Base class for spectrometers.
Definition: GyotoSpectrometer.h:172
size_t nsamples_
Number of spectral elements.
Definition: GyotoSpectrometer.h:189
Entry in a register (or a full register)
Definition: GyotoRegister.h:92