Last change
on this file since 2479 was 901, checked in by ansari, 25 years ago |
Sophie: adding the namespace SOPHYA in the .h files
|
File size:
1.0 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.5 2000-04-13 08:17:02 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 | namespace SOPHYA {
|
---|
19 | class BlackBody : public RadSpectra
|
---|
20 | {
|
---|
21 | public: //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 | // Redefintion of the Print function
|
---|
36 | virtual void Print(ostream& os) const;
|
---|
37 |
|
---|
38 | protected:
|
---|
39 | double _temperature;
|
---|
40 |
|
---|
41 | };
|
---|
42 | }
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.