LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Member Functions | 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 boost::shared_ptr
< table::io::Persistable
read (InputArchive const &archive, CatalogVector const &catalogs) const
 Construct a new object from the given InputArchive and vector of catalogs. More...
 
- Public Member Functions inherited from lsst.afw.table.io::PersistableFactory
 PersistableFactory (std::string const &name)
 Constructor for the factory. More...
 
virtual ~PersistableFactory ()
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst.afw.table.io::PersistableFactory
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 inherited from lsst.afw.table.io::PersistableFactory
typedef io::InputArchive InputArchive
 
typedef io::CatalogVector CatalogVector
 

Detailed Description

Definition at line 1017 of file Wcs.cc.

Constructor & Destructor Documentation

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

Definition at line 1020 of file Wcs.cc.

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

Member Function Documentation

boost::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 1141 of file Wcs.cc.

1141  {
1142  WcsPersistenceHelper const & keys = WcsPersistenceHelper::get();
1143  LSST_ARCHIVE_ASSERT(catalogs.size() >= 1u);
1144  LSST_ARCHIVE_ASSERT(catalogs.front().size() == 1u);
1145  LSST_ARCHIVE_ASSERT(catalogs.front().getSchema() == keys.schema);
1146  PTR(Wcs) result(new Wcs(catalogs.front().front()));
1147  return result;
1148 }
#define PTR(...)
Definition: base.h:41
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
Definition: Persistable.h:47
Implementation of the WCS standard for a any projection.
Definition: Wcs.h:107

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