diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-23 20:10:08 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-23 20:10:08 (GMT) |
commit | 42027570f57b484414d4e87f19e9c26aed5bb71d (patch) | |
tree | 4ce4812d4a348d147cf3d388106272101ccffc2a /fitsy/socket.h | |
parent | 1ea3cd7a5f436d8baa13fb53007773dcee637bd1 (diff) | |
download | blt-42027570f57b484414d4e87f19e9c26aed5bb71d.zip blt-42027570f57b484414d4e87f19e9c26aed5bb71d.tar.gz blt-42027570f57b484414d4e87f19e9c26aed5bb71d.tar.bz2 |
libutil
Diffstat (limited to 'fitsy/socket.h')
-rw-r--r-- | fitsy/socket.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/fitsy/socket.h b/fitsy/socket.h new file mode 100644 index 0000000..ce85942 --- /dev/null +++ b/fitsy/socket.h @@ -0,0 +1,51 @@ +// Copyright (C) 1999-2018 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __fitssocket_h__ +#define __fitssocket_h__ + +#include "strm.h" + +class FitsSocket : public virtual FitsStream<int> { +public: + FitsSocket(int, const char*); +}; + +class FitsFitsSocket : public FitsSocket, public FitsFitsStream<int> { +public: + FitsFitsSocket(int s, const char* ext, ScanMode mode, FlushMode flush) + : FitsSocket(s, ext), FitsFitsStream<int>(mode, flush) {} +}; + +class FitsFitsNextSocket : public FitsFitsNextStream<int> { +public: + FitsFitsNextSocket(FitsFile* prev) : FitsFitsNextStream<int>(prev) {} +}; + +class FitsArrSocket : public FitsSocket, public FitsArrStream<int> { +public: + FitsArrSocket(int s, const char* ext, FlushMode flush) + : FitsSocket(s, ext), FitsArrStream<int>(flush) {} +}; + +class FitsNRRDSocket : public FitsSocket, public FitsNRRDStream<int> { +public: + FitsNRRDSocket(int s, const char* ext, FlushMode flush) + : FitsSocket(s, ext), FitsNRRDStream<int>(flush) {} +}; + +class FitsMosaicSocket : public FitsSocket, public FitsMosaicStream<int> { +public: + FitsMosaicSocket(int s, FlushMode flush) + : FitsSocket(s, ""), FitsMosaicStream<int>(flush) {} +}; + +class FitsMosaicNextSocket : public FitsMosaicNextStream<int> { +public: + FitsMosaicNextSocket(FitsFile* prev, FlushMode flush) + : FitsMosaicNextStream<int>(prev, flush) {} +}; + +#endif + |