summaryrefslogtreecommitdiffstats
path: root/fitsy++/nrrd.h
blob: 6151fee9b35796f0fdea4890e5d4d4e941431e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __fitsnrrd_h__
#define __fitsnrrd_h__

#include "file.h"

class FitsNRRD : public FitsFile {
 protected:
  size_t size_;

 protected:
  int initHeader(FitsFile*);

 public:
  FitsNRRD(FitsFile*);
  virtual ~FitsNRRD();
};

template<class T>
class FitsNRRDm : public FitsNRRD {
 private:
  void swapBytes(FitsFile::ArchType);

 protected:
  void uncompress(FitsFile* fits);
  virtual int compressed(T*, char*, size_t) =0;
  
 public:
  FitsNRRDm(FitsFile*);
};

#endif