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

#ifndef __outfits_h__
#define __outfits_h__

#include "util.h"

#define B1KB 1024
#define B4KB 4096
#define B1MB 1048576

class OutFitsStream {
 protected:
  int valid_;

 public:
  OutFitsStream();
  virtual ~OutFitsStream();

  virtual int write(char*, size_t) =0;
  int writeSwap(char*, int, int);
  int valid() {return valid_;}
};

#endif