15 #include "FitsError.h"
303 InvalidColumnSpecification (
const String& msg,
bool silent =
true);
313 virtual Column&
column (
const String& colName,
bool caseSensitive =
true)
const;
316 virtual long rows ()
const;
318 void rows (
long numRows);
321 void insertRows (
long first,
long number = 1);
322 void deleteRows (
long first,
long number = 1);
323 void deleteRows (
const std::vector<long>& rowList);
326 virtual const std::map<string, Column*>&
column ()
const;
327 virtual std::map<string, Column*>&
column ();
333 Table (FITSBase* p, HduType xtype,
const String &hduName,
int rows,
334 const std::vector<String>& columnName,
const std::vector<String>& columnFmt,
const std::vector<String>& columnUnit = std::vector<String>(),
int version = 1);
336 Table (FITSBase* p, HduType xtype,
const String &hduName = String(
""),
int version = 1);
340 Table (FITSBase* p, HduType xtype,
int number);
342 virtual std::ostream & put (std::ostream &s)
const;
344 void init (
bool readFlag =
false,
const std::vector<String>& keys = std::vector<String>());
352 virtual void initRead ();
353 virtual void readTableHeader (
int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit) = 0;
356 void copyData (
const Table& right);
365 std::map<string, Column*> m_column;