#include "LocationAsapElementByProps.hh" #include "AtosException.hh" using namespace asap::atos; LocationAsapElementByProps::LocationAsapElementByProps (Element* el, handle props) : LocationAsapElement(el, GLOBALNOMINAL) { _props = props; } LocationAsapElementByProps::LocationAsapElementByProps (const LocationAsapElementByProps& loc) : LocationAsapElement(loc), _props(loc._props) { } LocationAsapElementByProps::~LocationAsapElementByProps() { } Location* LocationAsapElementByProps::clone() const { return new LocationAsapElementByProps(*this); } LocationAsapElementByProps::location_t LocationAsapElementByProps::type() const { switch(_props->displayLocationType()) { case AtosPlotProperties::GLOBAL: return GLOBAL; case AtosPlotProperties::GLOBALCORRECTION: return GLOBALCORRECTION; case AtosPlotProperties::GLOBALNOMINAL: return GLOBALNOMINAL; default: throw AtosException("LocationAsapElementByProps::type(): unknown type"); } }