27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24.3 <strong>CCfits</strong>::Column Class Reference 54<br />

24.3.1 Detailed Description<br />

Abstract base class for Column objects.<br />

Columns are the data containers used in FITS tables. Columns of scalar type (one<br />

entry per cell) are implemented by the template subclass ColumnData. Columns<br />

of vector type (vector and variable rows) are implemented with the template subclass<br />

ColumnVectorData. AsciiTables may only contain Columns of type Column-<br />

Data, where T is an implemented FITS data type (see the <strong>CCfits</strong>.h header for a<br />

complete list. This requirement is enforced by ensuring that AsciiTable’s addColumn<br />

method may only create an AsciiTable compatible column. The ColumnData<br />

class stores its data in a std::vector object.<br />

BinTables may contain either ColumnData or ColumnVectorData. For -<br />

ColumnVectorData, T must be a numeric type: string vectors are handled by Column-<br />

Data; string arrays are not supported. The internal representation of the data is<br />

a std::vector object. The std::valarray class is designed for efficient<br />

numeric processing and has many vectorized numeric and transcendental functions<br />

defined on it.<br />

Member template functions for read/write operations are provided in multiple overloads<br />

as the interface to data operations. Implicit data type conversions are supported<br />

but where they are required make the operations less efficient. Reading numeric column<br />

data as character arrays, supported by cfitsio, is not supported by <strong>CCfits</strong>.<br />

As a base class, Column provides protected accessor/mutator inline functions to allow<br />

only its subclasses to access data members.<br />

24.3.2 Constructor & Destructor Documentation<br />

24.3.2.1 <strong>CCfits</strong>::Column::Column ( const Column & right )<br />

copy constructor, used in copying Columns to standard library containers.<br />

The copy constructor is for internal use only: it does not affect the disk fits file associated<br />

with the object.<br />

24.3.2.2 <strong>CCfits</strong>::Column::Column ( int columnIndex, const String & columnName, ValueType<br />

type, const String & format, const String & unit, Table ∗ p, int rpt = 1, long w = 1,<br />

const String & comment = "" ) [protected]<br />

new column creation constructor<br />

This constructor allows the specification of:<br />

Parameters<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!