AsciiTable.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 ASCIITABLE_H
00013 #define ASCIITABLE_H 1
00014 
00015 // Table
00016 #include "Table.h"
00017 // HDUCreator
00018 #include "HDUCreator.h"
00019 // needed for CLONE_DEFECT
00020 #ifdef _MSC_VER
00021 #include "MSconfig.h"
00022 #endif
00023 
00024 
00025 namespace CCfits {
00026 
00139   class AsciiTable : public Table  //## Inherits: <unnamed>%3804A75CE420
00140   {
00141 
00142     public:
00143         virtual AsciiTable * clone (FITSBase* p) const;
00144         virtual void readData (bool readFlag = false, const std::vector<String>& keys = std::vector<String>());
00145         virtual void addColumn (ValueType type, const String& columnName, long repeatWidth, const String& colUnit = String(""), long decimals = 0, size_t columnNumber = 0);
00146 
00147       // Additional Public Declarations
00148 
00149     protected:
00150         AsciiTable (FITSBase* p, const String &hduName = String(""), bool readFlag = false, const std::vector<String>& keys = std::vector<String>(), int version = 1);
00151         AsciiTable (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);
00152         //      ExtHDU constructor for getting ExtHDUs by number.
00153         //      Necessary since EXTNAME is a reserved not required
00154         //      keyword.
00155         AsciiTable (FITSBase* p, int number);
00156         ~AsciiTable();
00157 
00158       // Additional Protected Declarations
00159 
00160     private:
00161         AsciiTable(const AsciiTable &right);
00162 
00163         virtual void readTableHeader (int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit);
00164 
00165       // Additional Private Declarations
00166 
00167     private: //## implementation
00168       // Additional Implementation Declarations
00169       friend class HDUCreator;
00170   };
00171 
00172   // Class CCfits::AsciiTable 
00173 
00174 } // namespace CCfits
00175 
00176 
00177 #endif

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