27 #ifndef __GyotoSpectrometer_H_ 28 #define __GyotoSpectrometer_H_ 52 class FactoryMessenger;
53 namespace Spectrometer {
85 typedef char const *
kind_t;
120 std::vector<std::string> &plugins,
135 spectro -> plugins(plugins);
136 #ifdef GYOTO_USE_XERCES 137 if (fmp) spectro -> setParameters(fmp);
292 virtual Generic * clone() const =0;
315 virtual kind_t kindid() const ;
337 virtual void kindid(kind_t) ;
339 virtual size_t nSamples() const ;
340 virtual size_t getNBoundaries() const ;
341 virtual double const * getMidpoints() const ;
347 virtual void getMidpoints( double data[], std::string unit);
353 virtual void getChannelBoundaries( double data[], std::string unit);
354 virtual double const * getChannelBoundaries() const ;
355 virtual size_t const * getChannelIndices() const ;
356 virtual double const * getWidths() const ;
367 virtual void getWidths( double data[], std::string unit);
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Tellers tell Listeners when they mutate.
Reference-counting pointers.
void Register(std::string name, Gyoto::Spectrometer::Subcontractor_t *scp)
Register a new Spectrometer kind.
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
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
char const * kind_t
Type for Spectrometer kind.
Definition: GyotoSpectrometer.h:71
Gyoto::Spectrometer::Subcontractor_t * getSubcontractor(std::string name, std::vector< std::string > &plugins, int errmode=0)
Query the Spectrometer register.
Gyoto ubiquitous macros and typedefs.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:80
void initRegister()
Initialize the Spectrometer register This must be called once. It initializes Register_ and registers...
Gyoto::Register::Entry * Register_
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
Object with properties.
Definition: GyotoObject.h:151
Listen to me and I'll warn you when I change.
Definition: GyotoHooks.h:82
Base class for spectrometers.
Definition: GyotoSpectrometer.h:182
Entry in a register (or a full register)
Definition: GyotoRegister.h:117