source: Sophya/trunk/SophyaLib/SkyT/blackbody.h@ 668

Last change on this file since 668 was 668, checked in by ansari, 26 years ago

Ajout de classes deleguees PPersist et correction integration - Sophie 29/11/99

File size: 1.1 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2//--------------------------------------------------------------------------
3// File and Version Information:
4// $Id: blackbody.h,v 1.3 1999-11-29 14:16:03 ansari Exp $
5//
6// Description:
7//
8// History (add to end):
9// Sophie Oct, 1999 - creation
10//
11//------------------------------------------------------------------------
12
13#ifndef BLACKBODY_H_SEEN
14#define BLACKBODY_H_SEEN
15
16#include "radspec.h"
17#include "convtools.h"
18
19class BlackBody : public RadSpectra
20{
21public: //Constructor
22 //Constructor
23 BlackBody (double temp = ConvTools::tcmb);
24
25 virtual ~BlackBody();
26
27 virtual double flux(double nu) const;
28
29 // returns the value of the temperature
30 inline double getTemperature() const {return _temperature;}
31
32 // reset the value of the temperature with a new value
33 inline void setTemperature(double newtemp) { _temperature = newtemp; }
34
35 virtual void ReadSelf(PInPersist& s);
36 virtual void WriteSelf(POutPersist& s);
37 // Redefintion of the Print function
38 virtual void Print(ostream& os) const;
39
40protected:
41 double _temperature;
42
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.