22 #ifndef ASTSHIM_SLAMAP_H 23 #define ASTSHIM_SLAMAP_H 67 :
Mapping(reinterpret_cast<AstMapping *>(astSlaMap(0,
"%s",
options.c_str()))) {
182 return copyImpl<SlaMap, AstSlaMap>();
186 explicit SlaMap(AstSlaMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
189 os <<
"this is a " <<
getClassName() <<
", which is not a SlaMap";
AstObject const * getRawPtr() const
Get the raw AST pointer.
std::shared_ptr< SlaMap > copy() const
Return a deep copy of this object.
AST wrapper classes and functions.
std::string getClassName() const
Get Class: the name of the class (e.g.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
void add(std::string const &cvt, std::vector< double > const &args=std::vector< double >())
Add one of the standard celestial coordinate system conversions provided by the SLALIB Positional Ast...
An abstract base class for objects which transform one set of coordinates to another.
SlaMap is a specialised form of Mapping which can be used to represent a sequence of conversions betw...
SlaMap(AstSlaMap *rawptr)
Construct a SlaMap from a raw AST pointer.
SlaMap(std::string const &options="")
Construct a SlaMap.
T static_pointer_cast(T... args)
SlaMap & operator=(SlaMap const &)=delete
Abstract base class for all AST objects.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.