|
lsst.afw
14.0-17-gfc02bf727
|
A CRTP facade class for subclasses of Persistable. More...
#include <Persistable.h>
Static Public Member Functions | |
| static std::shared_ptr< T > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< T > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< T > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
A CRTP facade class for subclasses of Persistable.
Derived classes should generally inherit from PersistableFacade at all levels, but only inherit from Persistable via the base class of each hierarchy. For example, with Psfs:
class Psf: public PersistableFacade<Psf>, public Persistable { ... };
class DoubleGaussianPsf: public PersistableFacade<DoubleGaussianPsf>, public Psf { ... };
Inheriting from PersistableFacade is not required for any classes but the base of each hierarchy, but doing so can save users from having to do some dynamic_casts.
Definition at line 173 of file Persistable.h.
|
inlinestatic |
Read an object from an already open FITS object.
| [in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 180 of file Persistable.h.
|
inlinestatic |
Read an object from a regular FITS file.
| [in] | fileName | Name of the file to read. |
| [in] | hdu | HDU to read, where 0 is the primary. The special value of INT_MIN skips the primary HDU if it is empty. |
Definition at line 191 of file Persistable.h.
|
inlinestatic |
Read an object from a FITS file in memory.
| [in] | manager | Manager for the memory to read from. |
| [in] | hdu | HDU to read, where 0 is the primary. The special value of INT_MIN skips the primary HDU if it is empty. |
Definition at line 202 of file Persistable.h.
1.8.13