92 Type GetType() const noexcept;
95 bool IsNull() const noexcept;
98 bool IsSignedInteger() const noexcept;
100 bool IsUnsignedInteger() const noexcept;
102 bool IsFloat() const noexcept;
104 bool IsDouble() const noexcept;
106 bool IsStringView() const noexcept;
109 bool TryGet(
bool& value) const noexcept;
111 bool TryGet(
short& value) const noexcept;
113 bool TryGet(
unsigned short& value) const noexcept;
115 bool TryGet(
int& value) const noexcept;
117 bool TryGet(
unsigned int& value) const noexcept;
119 bool TryGet(
long& value) const noexcept;
121 bool TryGet(
unsigned long& value) const noexcept;
123 bool TryGet(
long long& value) const noexcept;
125 bool TryGet(
unsigned long long& value) const noexcept;
127 bool TryGet(
float& value) const noexcept;
129 bool TryGet(
double& value) const noexcept;
131 bool TryGet(
std::string_view& value) const noexcept;
135 T
Get(T defaultValue = {})
const noexcept
139 (void) TryGet(defaultValue);
148 template <
typename ResultType>
149 bool TryGetInteger(ResultType& value)
const noexcept;
A view into an attribute value. The class does not take the ownership of the data.
XMLAttributeValueView(const XMLAttributeValueView &)=default
XMLAttributeValueView()=default
Construct an uninitialized view of type Null.
Type
Type of the value represented by the XMLAttributeValueView.
XMLAttributeValueView(XMLAttributeValueView &&)=default
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
auto ToString(const std::optional< TimeSignature > &ts)
std::wstring ToWString(const std::string &str)