source: Sophya/trunk/SophyaLib/Samba/tod.h@ 528

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

Added MissionTime and TOD classes - I.Grivell+Reza 27/10/99

File size: 1.2 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2#ifndef TOD_H_SEEN
3#define TOD_H_SEEN
4
5#include "machdefs.h"
6#include "spherepos.h"
7#include "misstime.h"
8
9namespace PlanckDPC {
10template<class T>
11class TOD
12{
13public:
14 TOD(SphereCoordSys* cs = NULL)
15 { if (cs) cs_ = cs; else cs = new SphereCoordSys; }
16 virtual ~TOD()
17 { if (cs_) delete cs_; }
18
19// Set/Change/Get the coordinate system
20 virtual void SetCoordSys(SphereCoordSys* cs)
21 { if (cs) { delete cs_; cs_ = cs; } }
22 inline SphereCoordSys* GetCoordSys() const { return(cs_); }
23
24// Return the size / number of sample
25 virtual int_8 size() const = 0;
26 inline int_8 NbSample() const { return(size()); }
27
28// Start/End time
29 virtual MissionTime StartTime();
30 virtual MissionTime EndTime();
31
32// Sample time
33 virtual const MissionTime& SampleTime() const = 0;
34 virtual MissionTime& SampleTime() = 0;
35
36// Sample value
37 virtual const T& SampleValue() const = 0;
38 virtual T& SampleValue() = 0;
39
40// Sample direction
41 virtual const UnitVector& SamplePointing() const = 0;
42 virtual UnitVector& SamplePointing() = 0;
43
44};
45
46} // Fin du namespace
47
48#endif
Note: See TracBrowser for help on using the repository browser.