lsst.afw
14.0-58-g91bfccb15
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
();
26
27
PsfFormatter
(
PsfFormatter
const
&);
28
PsfFormatter
(
PsfFormatter
&&);
29
PsfFormatter
&
operator=
(
PsfFormatter
const
&);
30
PsfFormatter
&
operator=
(
PsfFormatter
&&);
31
32
virtual
void
write
(
lsst::daf::base::Persistable
const
*
persistable
,
33
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
34
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
35
36
virtual
lsst::daf::base::Persistable
*
read
(
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
37
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
38
39
virtual
void
update
(
lsst::daf::base::Persistable
* persistable,
40
std::shared_ptr<lsst::daf::persistence::FormatterStorage>
storage,
41
std::shared_ptr<lsst::daf::base::PropertySet>
additionalData);
42
50
template
<
class
Archive>
51
static
void
delegateSerialize
(Archive& ar,
unsigned
int
const
version,
52
lsst::daf::base::Persistable
* persistable);
53
54
private
:
58
explicit
PsfFormatter
(
std::shared_ptr<lsst::pex::policy::Policy>
policy);
59
60
std::shared_ptr<lsst::pex::policy::Policy>
_policy;
61
66
static
std::shared_ptr<lsst::daf::persistence::Formatter>
createInstance(
67
std::shared_ptr<lsst::pex::policy::Policy>
policy);
68
72
static
lsst::daf::persistence::FormatterRegistration
registration;
73
static
lsst::daf::persistence::FormatterRegistration
doubleGaussianPsfRegistration;
74
static
lsst::daf::persistence::FormatterRegistration
pcaPsfRegistration;
75
};
76
}
77
}
78
}
79
80
#endif
std::shared_ptr
lsst::afw::detection::PsfFormatter::operator=
PsfFormatter & operator=(PsfFormatter const &)
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:104
lsst::afw::detection::PsfFormatter::PsfFormatter
PsfFormatter(PsfFormatter const &)
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:75
lsst::afw::detection::PsfFormatter::~PsfFormatter
virtual ~PsfFormatter()
Minimal destructor.
Formatter.h
lsst
A base class for image defects.
Persistable.h
Policy.h
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:98
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:49
lsst::afw::detection::PsfFormatter
Formatter for persistence of Psf instances.
Definition:
PsfFormatter.h:21
persistable
lsst::daf::base::Persistable
Generated on Thu Mar 22 2018 10:27:18 for lsst.afw by
1.8.13