Writer object for FITS binary tables.
More...
#include <FitsWriter.h>
|
| 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...
|
| |
|
| 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...
|
| |
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 25 of file FitsWriter.h.
| lsst::afw::table::io::FitsWriter::FitsWriter |
( |
Fits * |
fits, |
|
|
int |
flags |
|
) |
| |
|
inlineexplicit |
Construct from a wrapped cfitsio pointer.
Definition at line 79 of file FitsWriter.h.
| virtual void lsst::afw::table::io::FitsWriter::_finish |
( |
| ) |
|
|
inlineprotectedvirtual |
| virtual void lsst::afw::table::io::FitsWriter::_writeRecord |
( |
BaseRecord const & |
source | ) |
|
|
protectedvirtual |
Write an individual record.
| virtual void lsst::afw::table::io::FitsWriter::_writeTable |
( |
std::shared_ptr< BaseTable const > const & |
table, |
|
|
std::size_t |
nRows |
|
) |
| |
|
protectedvirtual |
Write a table and its schema.
template<typename OutputT , typename ContainerT >
| static void lsst::afw::table::io::FitsWriter::apply |
( |
OutputT & |
output, |
|
|
std::string const & |
mode, |
|
|
ContainerT const & |
container, |
|
|
int |
flags |
|
) |
| |
|
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 37 of file FitsWriter.h.
template<typename ContainerT >
| static void lsst::afw::table::io::FitsWriter::apply |
( |
Fits & |
fits, |
|
|
ContainerT const & |
container, |
|
|
int |
flags |
|
) |
| |
|
inlinestatic |
Low-level driver for writing FITS files, operating on an open FITS file.
Definition at line 44 of file FitsWriter.h.
template<typename ContainerT >
| void lsst::afw::table::io::FitsWriter::write |
( |
ContainerT const & |
container | ) |
|
|
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 58 of file FitsWriter.h.
| Fits* lsst::afw::table::io::FitsWriter::_fits |
|
protected |
| int lsst::afw::table::io::FitsWriter::_flags |
|
protected |
| std::size_t lsst::afw::table::io::FitsWriter::_row |
|
protected |
The documentation for this class was generated from the following file: