22 #ifndef ASTSHIM_SLAMAP_H
23 #define ASTSHIM_SLAMAP_H
66 explicit SlaMap(std::string
const &options =
"")
67 :
Mapping(reinterpret_cast<AstMapping *>(astSlaMap(0,
"%s", options.c_str()))) {
175 void add(std::string
const &cvt, std::vector<double>
const &args = std::vector<double>()) {
176 astSlaAdd(
getRawPtr(), cvt.c_str(), args.size(), args.data());
182 return copyImpl<SlaMap, AstSlaMap>();
186 explicit SlaMap(AstSlaMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
188 std::ostringstream os;
189 os <<
"this is a " <<
getClassName() <<
", which is not a SlaMap";
190 throw std::invalid_argument(os.str());