lsst.afw
20.0.0-13-gad96b2d30+614f89f815
|
Go to the documentation of this file.
41 "afw::table-based persistence is not supported for this object.");
47 return _readFits(fitsfile);
53 return _readFits(fitsfile);
58 return archive.get(1);
67 RegistryMap &getRegistry() {
68 static RegistryMap instance;
77 RegistryMap::const_iterator i = getRegistry().find(
name);
78 if (i == getRegistry().
end()) {
79 if (!module.
empty()) {
85 "PersistableFactory with name '%s' not found, and import of module "
86 "'%s' failed (possibly because Python calls were not available from C++).") %
90 i = getRegistry().find(
name);
91 if (i == getRegistry().
end()) {
95 "PersistableFactory with name '%s' not found even after successful import "
96 "of module '%s'. Please report this as a bug in the persistence "
97 "implementation for this object.") %
105 "PersistableFactory with name '%s' not found, and no Python module to import "
106 "was provided. Please report this as a bug in the persistence implementation "
107 "for this object.") %
virtual std::string getPythonModule() const
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
static PersistableFactory const & lookup(std::string const &name, std::string const &module="")
Return the factory that has been registered with the given name.
void writeFits(std::string const &fileName, std::string const &mode="w") const
Write the object to a regular FITS file.
int put(std::shared_ptr< Persistable const > obj, bool permissive=false)
Save an object to the archive and return a unique ID that can be used to retrieve it from an InputArc...
An object passed to Persistable::write to allow it to persist itself.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Lifetime-management for memory that goes into FITS memory files.
virtual bool isPersistable() const noexcept
Return true if this particular object can be persisted using afw::table::io.
PersistableFactory(std::string const &name)
Constructor for the factory.
static bool import(std::string const &name)
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
void writeFits(fits::Fits &fitsfile) const
Write the archive to an already-open FITS object.
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
A base class for factory classes used to reconstruct objects from records.
A multi-catalog archive object used to save table::io::Persistable objects.
A base class for image defects.
#define LSST_EXCEPT(type,...)