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

#ifndef __outfile_h__
#define __outfile_h__

#include "outfits.h"
#include "zlib.h"

class OutFitsFile : public virtual OutFitsStream {
 private:
  FILE* fd_;

 public:
  OutFitsFile(const char*);
  ~OutFitsFile();

  int write(char*, size_t);
};

class OutFitsFileGZ : public virtual OutFitsStream {
 private:
  gzFile fd_;

 public:
  OutFitsFileGZ(const char*);
  ~OutFitsFileGZ();

  int write(char*, size_t);
};

#endif