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>
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>
std::shared_ptr< Transform > readStream(std::istream &is)
Deserialize a Transform from an input stream.
Channel provides input/output of AST objects.
void writeStream(Transform const &transform, std::ostream &os)
Serialize a Transform to an output stream.
An abstract base class for objects which transform one set of coordinates to another.
A base class for image defects.
T dynamic_pointer_cast(T... args)
constexpr int serializationVersion
version of serialization used when writing (older versions may also be supported when reading) ...
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Reports invalid arguments.
table::Key< int > version
std::shared_ptr< Object > read()
Read an object from a channel.
A stream for ast::Channel.