diff options
Diffstat (limited to 'fitsy++/sshare.h')
-rw-r--r-- | fitsy++/sshare.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/fitsy++/sshare.h b/fitsy++/sshare.h new file mode 100644 index 0000000..c223a9d --- /dev/null +++ b/fitsy++/sshare.h @@ -0,0 +1,44 @@ +// Copyright (C) 1999-2018 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __fitssshare_h__ +#define __fitssshare_h__ + +#include "smap.h" + +class FitsSShareID : public virtual FitsSMap { +public: + FitsSShareID(int, int, const char*); + virtual ~FitsSShareID(); +}; + +class FitsSShareKey : public virtual FitsSMap { +public: + FitsSShareKey(int, int, const char*); + virtual ~FitsSShareKey(); +}; + +class FitsFitsSShare : public virtual FitsSMap, public FitsFitsSMap { + public: + FitsFitsSShare() : FitsSMap(), FitsFitsSMap(FitsHead::SHARE) {} +}; + +class FitsFitsNextSShare : public FitsFitsNextSMap { +public: + FitsFitsNextSShare(FitsFile* prev) : FitsFitsNextSMap(prev) {} +}; + +class FitsFitsSShareID : public FitsSShareID, public FitsFitsSShare { +public: + FitsFitsSShareID(int hdrid, int shmid, const char* filter) + : FitsSShareID(hdrid, shmid, filter), FitsFitsSShare() {} +}; + +class FitsFitsSShareKey : public FitsSShareKey, public FitsFitsSShare { +public: + FitsFitsSShareKey(int hdr, int key, const char* filter) + : FitsSShareKey(hdr, key, filter), FitsFitsSShare() {} +}; + +#endif |