|
lsst.afw
17.0.1-24-g0055ebd3c+3
|
Interface supporting iteration over heterogenous containers. More...
#include <Storable.h>
Public Member Functions | |
| virtual | ~Storable () noexcept=0 |
| virtual std::unique_ptr< Storable > | clone () const |
| Create a new object that is a copy of this one (optional operation). More... | |
| virtual std::string | toString () const |
| Create a string representation of this object (optional operation). More... | |
| virtual std::size_t | hash_value () const |
| Return a hash of this object (optional operation). More... | |
| virtual bool | equals (Storable const &other) const noexcept |
| Compare this object to another Storable. More... | |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| Write the object to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| Write the object to a FITS image in memory. More... | |
| void | writeFits (fits::Fits &fitsfile) const |
| Write the object to an already-open FITS object. More... | |
| virtual bool | isPersistable () const noexcept |
| Return true if this particular object can be persisted using afw::table::io. More... | |
Protected Types | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
| virtual std::string | getPersistenceName () const |
| Return the unique name used to persist this object and look up its factory. More... | |
| virtual std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| virtual void | write (OutputArchiveHandle &handle) const |
| Write the object to one or more catalogs. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
| Output operator for Storable. More... | |
Interface supporting iteration over heterogenous containers.
Storable may be subclassed by either C++ or Python classes. Many operations defined by Storable are optional, and may throw UnsupportedOperationException if they are not defined.
Definition at line 61 of file Storable.h.
|
protectedinherited |
Definition at line 108 of file Persistable.h.
|
inlinepure virtualnoexcept |
Definition at line 112 of file Storable.h.
|
inlinevirtual |
Create a new object that is a copy of this one (optional operation).
| UnsupportedOperationException | Thrown if this object is not cloneable. |
Definition at line 70 of file Storable.h.
|
inlinevirtualnoexcept |
Compare this object to another Storable.
Subclasses that implement equality comparison must override this method to give results consistent with operator== for all inputs that are accepted by both.
false.false. If cross-class comparisons are valid, implementers should take care that they are symmetric and will give the same result no matter what the compile-time types of the left- and right-hand sides are. Definition at line 109 of file Storable.h.
|
protectedvirtualinherited |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented in lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::math::AnalyticKernel, lsst::afw::image::PhotoCalib, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::FixedKernel, lsst::afw::geom::SkyWcs, lsst::afw::detection::Footprint, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::geom::polygon::Polygon, lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::ChebyshevBoundedField, lsst::afw::image::VisitInfo, lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::detection::GaussianPsf, lsst::afw::image::CoaddInputs, and lsst::afw::math::TransformBoundedField.
Definition at line 34 of file Persistable.cc.
|
protectedvirtualinherited |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented in lsst::afw::math::Kernel, lsst::afw::geom::SkyWcs, lsst::afw::detection::Footprint, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::TransmissionCurve, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::Function< ReturnT >, lsst::afw::math::Function< Kernel::Pixel >, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::detection::GaussianPsf, lsst::afw::math::TransformBoundedField, and lsst::afw::image::CoaddInputs.
Definition at line 36 of file Persistable.cc.
|
inlinevirtual |
Return a hash of this object (optional operation).
| UnsupportedOperationException | Thrown if this object is not hashable. |
Definition at line 90 of file Storable.h.
|
inlinevirtualnoexceptinherited |
Return true if this particular object can be persisted using afw::table::io.
Reimplemented in lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::geom::SpanSet, lsst::afw::math::AnalyticKernel, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::FixedKernel, lsst::afw::image::PhotoCalib, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::cameraGeom::Detector, lsst::afw::detection::Footprint, lsst::afw::geom::SkyWcs, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::geom::polygon::Polygon, lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::ChebyshevBoundedField, lsst::afw::image::VisitInfo, lsst::afw::cameraGeom::TransformMap, lsst::afw::cameraGeom::Camera, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::detection::GaussianPsf, lsst::afw::image::CoaddInputs, lsst::afw::image::ApCorrMap, lsst::afw::math::PixelScaleBoundedField, and lsst::afw::math::TransformBoundedField.
Definition at line 102 of file Persistable.h.
|
inlinevirtual |
Create a string representation of this object (optional operation).
| UnsupportedOperationException | Thrown if this object does not have a string representation. |
Definition at line 79 of file Storable.h.
|
protectedvirtualinherited |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented in lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::math::AnalyticKernel, lsst::afw::image::PhotoCalib, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::FixedKernel, lsst::afw::geom::SkyWcs, lsst::afw::detection::Footprint, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::geom::polygon::Polygon, lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::ChebyshevBoundedField, lsst::afw::image::VisitInfo, lsst::afw::cameraGeom::Camera, lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::detection::GaussianPsf, lsst::afw::math::TransformBoundedField, and lsst::afw::image::CoaddInputs.
Definition at line 38 of file Persistable.cc.
|
inherited |
Write the object to a regular FITS file.
| [in] | fileName | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 24 of file Persistable.cc.
|
inherited |
Write the object to a FITS image in memory.
| [in] | manager | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 29 of file Persistable.cc.
|
inherited |
Write the object to an already-open FITS object.
| [in] | fitsfile | Open FITS object to write to. |
Definition at line 18 of file Persistable.cc.
|
related |
Output operator for Storable.
| os | the desired output stream |
| storable | the object to print |
os| UnsupportedOperationException | Thrown if storable does not have an implementation of Storable::toString. |
Definition at line 129 of file Storable.h.
1.8.13