LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Writer object for FITS binary tables. More...
#include <FitsWriter.h>
Public Types | |
typedef afw::fits::Fits | Fits |
Public Member Functions | |
template<typename ContainerT > | |
void | write (ContainerT const &container) |
Write records in a container to disk. More... | |
FitsWriter (Fits *fits, int flags) | |
Construct from a wrapped cfitsio pointer. More... | |
Static Public Member Functions | |
template<typename OutputT , typename ContainerT > | |
static void | apply (OutputT &output, std::string const &mode, ContainerT const &container, int flags) |
Driver for writing FITS files. More... | |
template<typename ContainerT > | |
static void | apply (Fits &fits, ContainerT const &container, int flags) |
Low-level driver for writing FITS files, operating on an open FITS file. More... | |
Protected Member Functions | |
virtual void | _writeTable (boost::shared_ptr< BaseTable const > const &table, std::size_t nRows) |
Write a table and its schema. More... | |
virtual void | _writeRecord (BaseRecord const &source) |
Write an individual record. More... | |
virtual void | _finish () |
Finish writing a catalog. More... | |
Protected Attributes | |
Fits * | _fits |
int | _flags |
std::size_t | _row |
Private Attributes | |
boost::shared_ptr< ProcessRecords > | _processor |
Writer object for FITS binary tables.
FitsWriter itself provides support for writing FITS binary tables from base containers. Derived record/base pairs should derive their own writer from FitsWriter and reimplement BaseTable::makeFitsWriter to return it. Subclasses will usually delegate most of the work back to FitsWriter.
Definition at line 22 of file FitsWriter.h.
Definition at line 25 of file FitsWriter.h.
|
inlineexplicit |
|
inlineprotectedvirtual |
|
protectedvirtual |
Write an individual record.
|
protectedvirtual |
Write a table and its schema.
|
inlinestatic |
Driver for writing FITS files.
A container class will usually provide a member function that calls this driver, which opens the FITS file, calls makeFitsWriter on the container's table, and then calls Writer::write on it.
Definition at line 35 of file FitsWriter.h.
|
inlinestatic |
Low-level driver for writing FITS files, operating on an open FITS file.
Definition at line 42 of file FitsWriter.h.
|
inline |
Write records in a container to disk.
The given container must have a getTable() member function that returns a shared_ptr to a table, and the iterators returned by begin() and end() must dereference to a type convertible to BaseRecord const &.
Definition at line 56 of file FitsWriter.h.
|
protected |
Definition at line 93 of file FitsWriter.h.
|
protected |
Definition at line 94 of file FitsWriter.h.
|
private |
Definition at line 99 of file FitsWriter.h.
|
protected |
Definition at line 95 of file FitsWriter.h.