LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
24 #ifndef LSST_AFW_GEOM_TRANSFORMUTILS_H
25 #define LSST_AFW_GEOM_TRANSFORMUTILS_H
55 template <
class Transform>
71 template <
class Transform>
78 template <
class Transform>
95 auto mapping = std::dynamic_pointer_cast<ast::Mapping>(astObjectPtr);
98 os <<
"The AST serialization was read as a " << astObjectPtr->getClassName()
99 <<
" instead of a Mapping";
103 return std::make_shared<Transform>(*mapping);
106 template <
class Transform>
void writeStream(Transform const &transform, std::ostream &os)
Serialize a Transform to an output stream.
std::shared_ptr< Transform > readStream(std::istream &is)
Deserialize a Transform from an input stream.
table::Key< int > version
Channel provides input/output of AST objects.
A stream for ast::Channel.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
std::shared_ptr< Object > read()
Read an object from a channel.
constexpr int serializationVersion
version of serialization used when writing (older versions may also be supported when reading)
Reports invalid arguments.