10 #define HDUCREATOR_H 1
23 #include "FitsError.h"
42 HDUCreator (FITSBase* p);
47 HDU * getHdu (
const String& hduName,
bool readDataFlag =
false,
const std::vector<String> &keys = std::vector<String>(),
bool primary =
false,
int version = 1);
48 PHDU * createImage (
int bitpix,
long naxis,
const std::vector<long>& naxes);
50 HDU * Make (
const String& hduName,
bool readDataFlag,
const std::vector<String> &keys,
bool primary,
int version);
51 HDU* createTable (
const String &name, HduType xtype,
int rows,
const std::vector<String>& colName,
const std::vector<String> colFmt,
const std::vector<String> colUnit,
int version);
56 HDU * getHdu (
int index = 0,
bool readDataFlag =
false,
const std::vector<String> &keys = std::vector<String>());
57 ExtHDU * createImage (
const String &name,
int bitpix,
long naxis,
const std::vector<long>& naxes,
int version);
65 PHDU * MakeImage (
int bpix,
int naxis,
const std::vector<long>& naxes);
66 HDU* MakeTable (
const String &name, HduType xtype,
int rows,
const std::vector<String>& colName,
const std::vector<String>& colFmt,
const std::vector<String>& colUnit,
int version);
67 HDU * Make (
int index,
bool readDataFlag,
const std::vector<String> &keys);
68 ExtHDU * MakeImage (
const String &name,
int bpix,
long naxis,
const std::vector<long>& naxes,
int version);
69 void getScaling (
long& type,
double& zero,
double& scale)
const;
70 void parent (FITSBase* value);
73 HDU* commonMake(
const String& hduName,
bool readDataFlag,
const std::vector<String> &keys,
bool primary,
int version);
90 inline HDU * HDUCreator::getHdu (
const String& hduName,
bool readDataFlag,
const std::vector<String> &keys,
bool primary,
int version)
93 if ( m_hdu == 0 ) m_hdu = Make(hduName,readDataFlag,keys,primary,version);
97 inline void HDUCreator::reset ()
102 inline HDU* HDUCreator::createTable (
const String &name, HduType xtype,
int rows,
const std::vector<String>& colName,
const std::vector<String> colFmt,
const std::vector<String> colUnit,
int version)
105 if (m_hdu == 0) m_hdu = MakeTable(name,xtype,rows,colName,colFmt,colUnit,version);
109 inline HDU * HDUCreator::getHdu (
int index,
bool readDataFlag,
const std::vector<String> &keys)
112 if ( m_hdu == 0 ) m_hdu = Make(index,readDataFlag,keys);
116 inline void HDUCreator::parent (FITSBase* value)
Namespace enclosing all CCfits classes and globals definitions.
Definition: AsciiTable.cxx:26