LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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 1067 of file Wcs.cc.

Constructor & Destructor Documentation

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

Definition at line 1070 of file Wcs.cc.

1070 : table::io::PersistableFactory(name) {}

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 1182 of file Wcs.cc.

1182  {
1183  WcsPersistenceHelper const & keys = WcsPersistenceHelper::get();
1184  LSST_ARCHIVE_ASSERT(catalogs.size() >= 1u);
1185  LSST_ARCHIVE_ASSERT(catalogs.front().size() == 1u);
1186  LSST_ARCHIVE_ASSERT(catalogs.front().getSchema() == keys.schema);
1187  PTR(Wcs) result(new Wcs(catalogs.front().front()));
1188  return result;
1189 }
#define PTR(...)
Definition: base.h:41
Implementation of the WCS standard for a any projection.
Definition: Wcs.h:107
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
Definition: Persistable.h:47

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