bool NumericComparerWrapper::testAttribute(const Atlas::Message::Element& attribute) { if (attribute.isNum()) { return mNumericComparer->test(attribute.asNum()); } return false; }
void NumberAdapter::updateGui(const ::Atlas::Message::Element& element) { SelfUpdateContext context(*this); if (mTextWindow) { std::stringstream ss; ss << element.asNum(); mTextWindow->setText(ss.str()); } }
void StaticAdapter::updateGui(const ::Atlas::Message::Element& element) { SelfUpdateContext context(*this); if (mTextWindow) { if (element.isString()) { mTextWindow->setText(element.asString()); } else if (element.isNum()) { std::stringstream ss; ss << element.asNum(); mTextWindow->setText(ss.str()); } } }
void Property<double>::set(const Atlas::Message::Element & e) { if (e.isNum()) { this->m_data = e.asNum(); } }