27#ifndef __GyotoSpectrometer_H_
28#define __GyotoSpectrometer_H_
52 class FactoryMessenger;
53 namespace Spectrometer {
120 std::vector<std::string> &plugins,
135 spectro -> plugins(plugins);
136#ifdef GYOTO_USE_XERCES
137 if (fmp) spectro -> setParameters(fmp);
367 virtual void
getWidths( double data[], std::string unit);
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
Gyoto ubiquitous macros and typedefs.
Tellers tell Listeners when they mutate.
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Reference-counting pointers.
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
Listen to me and I'll warn you when I change.
Definition: GyotoHooks.h:82
Object with properties.
Definition: GyotoObject.h:152
Entry in a register (or a full register)
Definition: GyotoRegister.h:117
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:81
Base class for spectrometers.
Definition: GyotoSpectrometer.h:186
virtual size_t const * getChannelIndices() const
Get Generic::chanind_.
virtual double const * getMidpoints() const
Get Generic::midpoints_.
virtual size_t getNBoundaries() const
Get Generic::nboundaries_.
double * midpoints_
Effective frequency (in Hz) of each spectral channel.
Definition: GyotoSpectrometer.h:231
double * boundaries_
Frequency (in Hz) at the boundaries of the spectral channels.
Definition: GyotoSpectrometer.h:217
virtual double const * getWidths() const
Get Generic::widths_.
virtual size_t nSamples() const
Get Generic::nsamples_.
size_t nsamples_
Number of spectral elements.
Definition: GyotoSpectrometer.h:199
virtual double const * getChannelBoundaries() const
Get Generic::boundaries_.
size_t nboundaries_
Size of the boundaries_ array.
Definition: GyotoSpectrometer.h:200
size_t * chanind_
Indices in boundaries_.
Definition: GyotoSpectrometer.h:224
kind_t kindid_
Spectrometer kind ID.
Definition: GyotoSpectrometer.h:197
virtual Generic * clone() const =0
Clone an instance.
virtual kind_t kindid() const
Get kindid_.
double * widths_
Width of each channel.
Definition: GyotoSpectrometer.h:238
Gyoto::Register::Entry * Register_
The Spectrometer register.
SmartPointer< Gyoto::Spectrometer::Generic > Subcontractor_t(Gyoto::FactoryMessenger *, std::vector< std::string > const &)
A function to build instances of a specific Astrobj::Generic sub-class.
Definition: GyotoSpectrometer.h:96
char const * kind_t
Type for Spectrometer kind.
Definition: GyotoSpectrometer.h:85
Gyoto::Spectrometer::Subcontractor_t * getSubcontractor(std::string name, std::vector< std::string > &plugins, int errmode=0)
Query the Spectrometer register.
SmartPointer< Spectrometer::Generic > Subcontractor(FactoryMessenger *fmp, std::vector< std::string > const &plugins)
A template for Subcontractor_t functions.
Definition: GyotoSpectrometer.h:133
void Register(std::string name, Gyoto::Spectrometer::Subcontractor_t *scp)
Register a new Spectrometer kind.
void initRegister()
Initialize the Spectrometer register This must be called once. It initializes Register_ and registers...
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43