lsst.afw
14.0-69-ge506bfb5f
include
lsst
afw
formatters
PropertyListFormatter.h
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
2
3
/*
4
* LSST Data Management System
5
* Copyright 2008, 2009, 2010 LSST Corporation.
6
*
7
* This product includes software developed by the
8
* LSST Project (http://www.lsst.org/).
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the LSST License Statement and
21
* the GNU General Public License along with this program. If not,
22
* see <http://www.lsstcorp.org/LegalNotices/>.
23
*/
24
25
#ifndef LSST_AFW_FORMATTERS_PROPERTYLISTFORMATTER_H
26
#define LSST_AFW_FORMATTERS_PROPERTYLISTFORMATTER_H
27
28
#include "
lsst/daf/base.h
"
29
#include "
lsst/daf/persistence.h
"
30
#include "
lsst/pex/policy/Policy.h
"
31
32
namespace
lsst
{
33
namespace
afw {
34
namespace
formatters {
35
39
class
PropertyListFormatter
:
public
daf::persistence::Formatter
{
40
public
:
41
virtual
~PropertyListFormatter
() =
default
;
42
43
PropertyListFormatter
(
PropertyListFormatter
const
&);
44
PropertyListFormatter
(
PropertyListFormatter
&&);
45
PropertyListFormatter
&
operator=
(
PropertyListFormatter
const
&);
46
PropertyListFormatter
&
operator=
(
PropertyListFormatter
&&);
47
48
virtual
void
write
(
daf::base::Persistable
const
*
persistable
,
49
std::shared_ptr<daf::persistence::FormatterStorage>
storage,
50
std::shared_ptr<daf::base::PropertySet>
additionalData);
51
52
virtual
daf::base::Persistable
*
read
(
std::shared_ptr<daf::persistence::FormatterStorage>
storage,
53
std::shared_ptr<daf::base::PropertySet>
additionalData);
54
55
virtual
void
update
(
daf::base::Persistable
* persistable,
56
std::shared_ptr<daf::persistence::FormatterStorage>
storage,
57
std::shared_ptr<daf::base::PropertySet>
additionalData);
58
59
static
std::shared_ptr<daf::persistence::Formatter>
createInstance
(
60
std::shared_ptr<pex::policy::Policy>
policy);
61
62
template
<
class
Archive>
63
static
void
delegateSerialize
(Archive& ar,
int
const
version,
daf::base::Persistable
* persistable);
64
65
private
:
66
explicit
PropertyListFormatter
(
std::shared_ptr<pex::policy::Policy>
policy);
67
68
static
daf::persistence::FormatterRegistration
registration;
69
};
70
}
71
}
72
}
// namespace lsst::afw::formatters
73
74
#endif
std::shared_ptr
lsst::afw::formatters::PropertyListFormatter::PropertyListFormatter
PropertyListFormatter(PropertyListFormatter const &)
lsst::afw::formatters::PropertyListFormatter::~PropertyListFormatter
virtual ~PropertyListFormatter()=default
lsst::daf::persistence::FormatterRegistration
lsst::afw::formatters::PropertyListFormatter
Class implementing persistence and retrieval for PropertyLists.
Definition:
PropertyListFormatter.h:39
persistence.h
lsst::afw::formatters::PropertyListFormatter::operator=
PropertyListFormatter & operator=(PropertyListFormatter const &)
lsst
A base class for image defects.
Policy.h
lsst::daf::persistence::Formatter
lsst::afw::formatters::PropertyListFormatter::delegateSerialize
static void delegateSerialize(Archive &ar, int const version, daf::base::Persistable *persistable)
lsst::afw::formatters::PropertyListFormatter::update
virtual void update(daf::base::Persistable *persistable, std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData)
base.h
persistable
lsst::daf::base::Persistable
lsst::afw::formatters::PropertyListFormatter::read
virtual daf::base::Persistable * read(std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData)
lsst::afw::formatters::PropertyListFormatter::write
virtual void write(daf::base::Persistable const *persistable, std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData)
lsst::afw::formatters::PropertyListFormatter::createInstance
static std::shared_ptr< daf::persistence::Formatter > createInstance(std::shared_ptr< pex::policy::Policy > policy)
Generated on Fri Apr 6 2018 11:18:38 for lsst.afw by
1.8.13