BinTable.h

00001 //   Read the documentation to learn more about C++ code generator
00002 //   versioning.
00003 //      This is version 1.7 release dated June 2007
00004 //      Astrophysics Science Division,
00005 //      NASA/ Goddard Space Flight Center
00006 //      HEASARC
00007 //      http://heasarc.gsfc.nasa.gov
00008 //      e-mail: ccfits@legacy.gsfc.nasa.gov
00009 //
00010 //      Original author: Ben Dorman, L3-Communications EER Systems Inc.
00011 
00012 #ifndef BINTABLE_H
00013 #define BINTABLE_H 1
00014 
00015 // Table
00016 #include "Table.h"
00017 // HDUCreator
00018 #include "HDUCreator.h"
00019 
00020 // needed for CLONE_DEFECT
00021 #ifdef _MSC_VER
00022 #include "MSconfig.h"
00023 #endif
00024 
00025 
00026 namespace CCfits {
00027 
00133   class BinTable : public Table  //## Inherits: <unnamed>%3804A7E75F10
00134   {
00135 
00136     public:
00137         virtual BinTable * clone (FITSBase* p) const;
00138         virtual void readData (bool readFlag = false, const std::vector<String>& keys = std::vector<String>());
00139         virtual void addColumn (ValueType type, const String& columnName, long repeatWidth, const String& colUnit = String(""), long decimals = 0, size_t columnNumber = 0);
00140 
00141       // Additional Public Declarations
00142 
00143     protected:
00144         BinTable (FITSBase* p, const String &hduName = String(""), bool readFlag = false, const std::vector<String>& keys = std::vector<String>(), int version = 1);
00145         BinTable (FITSBase* p, const String &hduName, int rows, const std::vector<String>& columnName = std::vector<String>(), const std::vector<String>& columnFmt = std::vector<String>(), const std::vector<String>& columnUnit = std::vector<String>(), int version = 1);
00146         //      ExtHDU constructor for getting ExtHDUs by number.
00147         //      Necessary since EXTNAME is a reserved not required
00148         //      keyword.
00149         BinTable (FITSBase* p, int number);
00150         ~BinTable();
00151 
00152       // Additional Protected Declarations
00153 
00154     private:
00155         BinTable(const BinTable &right);
00156 
00157         virtual void readTableHeader (int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit);
00158         void readVariableColumns (const std::vector<String> &varColumns);
00159 
00160       // Additional Private Declarations
00161 
00162     private: //## implementation
00163       // Additional Implementation Declarations
00164       friend class HDUCreator;
00165   };
00166 
00167   // Class CCfits::BinTable 
00168 
00169 } // namespace CCfits
00170 
00171 
00172 #endif

Generated on Thu Jun 28 11:49:08 2007 for CCfits by  doxygen 1.4.7