16#include "MantidAPI/DllConfig.h"
19#include <boost/algorithm/string.hpp>
20#include <boost/format.hpp>
23#include <Poco/DOM/AutoPtr.h>
24#include <Poco/DOM/DOMWriter.h>
25#include <Poco/DOM/Document.h>
26#include <Poco/DOM/Element.h>
27#include <Poco/DOM/Text.h>
51 bool m_isValid{
false};
55 AutoPtr<Document> pDoc =
new Document;
56 AutoPtr<Element> paramElement = pDoc->createElement(
"Parameter");
58 pDoc->appendChild(paramElement);
59 AutoPtr<Element> typeElement = pDoc->createElement(
"Type");
60 AutoPtr<Text> typeText = pDoc->createTextNode(this->
getName());
61 typeElement->appendChild(typeText);
62 paramElement->appendChild(typeElement);
64 AutoPtr<Element> valueElement = pDoc->createElement(
"Value");
65 AutoPtr<Text> valueText = pDoc->createTextNode(valueXMLtext);
66 valueElement->appendChild(valueText);
67 paramElement->appendChild(valueElement);
69 std::stringstream xmlstream;
72 writer.writeNode(xmlstream, pDoc);
73 return xmlstream.str();
double value
The value of the point.
std::string getName(const IMDDimension &self)
Abstract parameter type for use with IImplicitFunctions.
std::string parameterXMLTemplate(const std::string &valueXMLtext) const
virtual ~ImplicitFunctionParameter()=default
virtual bool isValid() const =0
virtual std::string getName() const =0
virtual ImplicitFunctionParameter * clone() const =0
virtual std::string toXMLString() const =0
Helper class which provides the Collimation Length for SANS instruments.
static std::string format(const ValueType &value)
static std::string formatCS(const ValueType &value)
static std::string formatCS(const ValueType &value)
static std::string format(const ValueType &value)
static std::string format(const ValueType &value)
static std::string formatCS(const ValueType &value)
static std::string format(const ValueType &value)
static std::string formatCS(const ValueType &value)
Default ElementTraits SFINAE Typetraits are used to provide the correct formatting based on the eleme...