19template <
typename ATTRIBUTE_T>
117 template <
typename VALUE_T>
123 template <
typename VALUE_T>
129template <
typename ATTRIBUTE_T>
136template <
typename ATTRIBUTE_T>
145template <
typename ATTRIBUTE_T>
154template <
typename ATTRIBUTE_T>
173 stream <<
"Invalid value \"" <<
_value <<
"\" of attribute \""
177 stream <<
"value must be \"" << *first <<
'"';
181 stream <<
" or value must be \"" << *first <<
'"';
191template <
typename ATTRIBUTE_T>
192template <
typename VALUE_T>
202template <
typename ATTRIBUTE_T>
203template <
typename VALUE_T>
#define PRECICE_ERROR(...)
#define PRECICE_DEBUG(...)
#define PRECICE_TRACE(...)
#define PRECICE_CHECK(check,...)
#define PRECICE_ASSERT(...)
This class provides a lightweight logger.
std::enable_if< std::is_same< VALUE_T, ATTRIBUTE_T >::value &¬std::is_same< VALUE_T, Eigen::VectorXd >::value, void >::type set(ATTRIBUTE_T &toSet, const VALUE_T &setter)
Sets non Eigen::VectorXd type values.
XMLAttribute & setOptions(std::initializer_list< T > &&options)
bool hasValidation() const
const ATTRIBUTE_T & getDefaultValue() const
const std::string & getUserDocumentation() const
void readValue(const std::map< std::string, std::string > &aAttributes)
const ATTRIBUTE_T & getValue() const
bool hasDefaultValue() const
XMLAttribute(std::string name)
XMLAttribute & setOptions(std::vector< ATTRIBUTE_T > options)
const std::vector< ATTRIBUTE_T > & getOptions() const
XMLAttribute(const XMLAttribute< ATTRIBUTE_T > &other)=default
XMLAttribute & setDefaultValue(const ATTRIBUTE_T &defaultValue)
const std::string & getName() const
std::vector< ATTRIBUTE_T > _options
ATTRIBUTE_T _defaultValue
XMLAttribute(std::string name, ATTRIBUTE_T defaultValue)
XMLAttribute & setDocumentation(std::string documentation)
Sets a documentation string for the attribute.
XMLAttribute & operator=(const XMLAttribute< ATTRIBUTE_T > &other)=default
XMLAttribute< std::string > makeXMLAttribute(std::string name, const char *defaultValue)
void readValueSpecific(const std::string &rawValue, double &value)
Main namespace of the precice library.