27 #ifndef __GyotoSpectrum_H_ 28 #define __GyotoSpectrum_H_ 35 class FactoryMessenger;
65 sp -> plugins(plugins) ;
66 #ifdef GYOTO_USE_XERCES 67 if (fmp) sp -> setParameters(fmp);
105 std::vector<std::string> &plugins,
144 Generic(const std::string kind);
145 Generic(const Spectrum::Generic &);
150 const std::string
kind() const;
152 virtual double operator()(double nu) const =0;
161 virtual double operator()(double nu, double opacity, double ds) const;
172 virtual double
integrate(double nu1, double nu2) ;
185 virtual double
integrate(double nu1, double nu2,
186 const Spectrum::Generic * opacity, double ds) ;
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
void Register(std::string kind, Gyoto::Spectrum::Subcontractor_t *scp)
Make a Spectrum kind known to the Factory.
const std::string kind() const
Get spectrum kind.
Reference-counting pointers.
SmartPointer< Spectrum::Generic > Subcontractor(FactoryMessenger *fmp, std::vector< std::string > const &plugins)
Subcontractor template.
Definition: GyotoSpectrum.h:63
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
Gyoto::SmartPointer< Gyoto::Spectrum::Generic > Subcontractor_t(Gyoto::FactoryMessenger *fmp, std::vector< std::string > const &)
A function to build instances of a specific Spectrum::Generic sub-class.
Definition: GyotoSpectrum.h:52
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:80
Gyoto::Spectrum::Subcontractor_t * getSubcontractor(std::string name, std::vector< std::string > &plugins, int errmode=0)
Query the Spectrum register.
virtual Generic * clone() const
Cloner.
Register::Entry * Register_
The Spectrum register.
Spectrum emitted by an Astrobj.
Definition: GyotoSpectrum.h:134
void initRegister()
Empty the Spectrum register.
Object with properties.
Definition: GyotoObject.h:151
virtual double integrate(double nu1, double nu2)
Integrate optically thick I_nu.
Entry in a register (or a full register)
Definition: GyotoRegister.h:117