lsst.afw
14.0-25-g0e8fc950e+5
include
lsst
afw
detection
PsfFormatter.h
Go to the documentation of this file.
1
// -*- LSST-C++ -*-
2
#if !defined(LSST_AFW_DETECTION_PSFFORMATTER_H)
3
#define LSST_AFW_DETECTION_PSFFORMATTER_H
4
5
/*
6
* Interface for PsfFormatter class
7
*/
8
9
#include "
lsst/daf/base/Persistable.h
"
10
#include "
lsst/daf/persistence/Formatter.h
"
11
#include "
lsst/daf/persistence/FormatterStorage.h
"
12
#include "
lsst/pex/policy/Policy.h
"
13
14
namespace
lsst
{
15
namespace
afw {
16
namespace
detection {
17
21
class
PsfFormatter
:
public
lsst::daf::persistence::Formatter
{
22
public
:
25
virtual
~PsfFormatter
(
void
);
26
27
virtual
void
write
(
lsst::daf::base::Persistable
const
*
persistable
,
28
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
29
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
30
31
virtual
lsst::daf::base::Persistable
*
read
(
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
32
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
33
34
virtual
void
update
(
lsst::daf::base::Persistable
* persistable,
35
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
36
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
37
45
template
<
class
Archive>
46
static
void
delegateSerialize
(Archive& ar,
unsigned
int
const
version,
47
lsst::daf::base::Persistable
* persistable);
48
49
private
:
53
explicit
PsfFormatter
(
std::shared_ptr<lsst::pex::policy::Policy>
policy);
54
55
std::shared_ptr<lsst::pex::policy::Policy>
_policy;
56
61
static
std::shared_ptr<lsst::daf::persistence::Formatter>
createInstance(
62
std::shared_ptr<lsst::pex::policy::Policy>
policy);
63
67
static
lsst::daf::persistence::FormatterRegistration
registration;
68
static
lsst::daf::persistence::FormatterRegistration
doubleGaussianPsfRegistration;
69
static
lsst::daf::persistence::FormatterRegistration
pcaPsfRegistration;
70
};
71
}
72
}
73
}
74
75
#endif
std::shared_ptr
lsst::afw::detection::PsfFormatter::delegateSerialize
static void delegateSerialize(Archive &ar, unsigned int const version, lsst::daf::base::Persistable *persistable)
Serialize a Psf to a Boost archive.
Definition:
PsfFormatter.cc:99
FormatterStorage.h
lsst::daf::persistence::FormatterRegistration
lsst::afw::detection::PsfFormatter::read
virtual lsst::daf::base::Persistable * read(std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
Definition:
PsfFormatter.cc:70
Formatter.h
lsst
A base class for image defects.
Persistable.h
Policy.h
lsst::afw::detection::PsfFormatter::~PsfFormatter
virtual ~PsfFormatter(void)
Minimal destructor.
Definition:
PsfFormatter.cc:42
lsst::daf::persistence::Formatter
lsst::afw::detection::PsfFormatter::update
virtual void update(lsst::daf::base::Persistable *persistable, std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
Definition:
PsfFormatter.cc:93
lsst::afw::detection::PsfFormatter::write
virtual void write(lsst::daf::base::Persistable const *persistable, std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
Definition:
PsfFormatter.cc:44
lsst::afw::detection::PsfFormatter
Formatter for persistence of Psf instances.
Definition:
PsfFormatter.h:21
persistable
lsst::daf::base::Persistable
Generated on Fri Dec 8 2017 09:56:54 for lsst.afw by
1.8.13