LSSTApplications  11.0-22-g33de520,13.0+153,14.0+52,14.0+57,14.0-1-g013352c+36,14.0-1-g13ef843+9,14.0-1-g4b114ac+14,14.0-1-g7257b6a+12,14.0-1-g8b7e855+51,14.0-13-g7a60b79+2,14.0-14-g87d16e8+10,14.0-14-gbf7a6f8a,14.0-17-g4f4ea82+5,14.0-2-g319577b+11,14.0-2-ga5af9b6+10,14.0-22-gc48c03f+3,14.0-3-g20413be+3,14.0-46-g76222d5f+3,14.0-47-g0a51fac97,14.0-5-g744ff5f+2,14.0-5-g86eb1bd+31,14.0-6-gd5b81a9+6,14.0-6-ge2c9487+42,14.0-8-g7f6dd6b+6,14.0-8-gb81b6e9+4,14.0-9-g11010eb,14.0-9-g330837b+5
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Protected Types | List of all members
lsst::afw::image::WcsFactory Class Reference
Inheritance diagram for lsst::afw::image::WcsFactory:
lsst::afw::table::io::PersistableFactory

Public Member Functions

 WcsFactory (std::string const &name)
 
virtual std::shared_ptr< table::io::Persistableread (InputArchive const &archive, CatalogVector const &catalogs) const
 Construct a new object from the given InputArchive and vector of catalogs. More...
 

Static Public Member Functions

static PersistableFactory const & lookup (std::string const &name, std::string const &module="")
 Return the factory that has been registered with the given name. More...
 

Protected Types

typedef io::InputArchive InputArchive
 
typedef io::CatalogVector CatalogVector
 

Detailed Description

Definition at line 920 of file Wcs.cc.

Member Typedef Documentation

◆ CatalogVector

typedef io::CatalogVector lsst::afw::table::io::PersistableFactory::CatalogVector
protectedinherited

Definition at line 220 of file Persistable.h.

◆ InputArchive

typedef io::InputArchive lsst::afw::table::io::PersistableFactory::InputArchive
protectedinherited

Definition at line 219 of file Persistable.h.

Constructor & Destructor Documentation

◆ WcsFactory()

lsst::afw::image::WcsFactory::WcsFactory ( std::string const &  name)
inlineexplicit

Definition at line 922 of file Wcs.cc.

922 : table::io::PersistableFactory(name) {}
table::Key< std::string > name
Definition: ApCorrMap.cc:71

Member Function Documentation

◆ lookup()

static PersistableFactory const& lsst::afw::table::io::PersistableFactory::lookup ( std::string const &  name,
std::string const &  module = "" 
)
staticinherited

Return the factory that has been registered with the given name.

If the lookup fails and module is not an empty string, we will attempt to import a Python module with that name (this will only work when the C++ is being called from Python) and try again.

◆ read()

std::shared_ptr< table::io::Persistable > lsst::afw::image::WcsFactory::read ( InputArchive const &  archive,
CatalogVector const &  catalogs 
) const
virtual

Construct a new object from the given InputArchive and vector of catalogs.

Implements lsst::afw::table::io::PersistableFactory.

Definition at line 1041 of file Wcs.cc.

1042  {
1043  WcsPersistenceHelper const& keys = WcsPersistenceHelper::get();
1044  LSST_ARCHIVE_ASSERT(catalogs.size() >= 1u);
1045  LSST_ARCHIVE_ASSERT(catalogs.front().size() == 1u);
1046  LSST_ARCHIVE_ASSERT(catalogs.front().getSchema() == keys.schema);
1047  std::shared_ptr<Wcs> result(new Wcs(catalogs.front().front()));
1048  return result;
1049 }
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
Definition: Persistable.h:48

The documentation for this class was generated from the following file: