summaryrefslogtreecommitdiffstats
path: root/fitsy++/block.h
blob: 816c7886008a1428bd362dc19b9b9e70304d6a76 (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
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __fitsblock_h__
#define __fitsblock_h__

#include "vector.h"
#include "vectorstr.h"
#include "file.h"

class FitsBlock : public FitsFile {
 protected:
  int width_;
  int height_;
  size_t size_;
  int bitpix_;

  void initHeader(FitsFile*, Vector&);

  void initCCDSUM(Vector&);
  void initKeySEC(const char*, Vector&);
  void initLTMV(Vector&);

 public:
  FitsBlock(FitsFile*, Vector&);
  ~FitsBlock();
};

#endif