A struct representing the value of an XML-node attribute.
More...
The Value struct stores a value and provides implicit conversion and assignment operators to facilitate easy conversion between different types and convenient assignment of values.
Example usage:
value = std::to_string(
"a_string");
std::string stringValue =
value;
bool booleanValue =
value;
int integerValue =
value;
double realValue =
value;
Value(const std::string &s)
Definition at line 48 of file XMLObject.h.
#include <XMLObject.h>
|
static std::string | True = "true" |
|
static std::string | False = "false" |
|
◆ Value() [1/4]
XML::Value::Value |
( |
const std::string & |
s | ) |
|
|
inline |
◆ Value() [2/4]
XML::Value::Value |
( |
bool |
b | ) |
|
|
inline |
◆ Value() [3/4]
XML::Value::Value |
( |
int |
i | ) |
|
|
inline |
◆ Value() [4/4]
XML::Value::Value |
( |
double |
d | ) |
|
|
inline |
◆ operator bool()
XML::Value::operator bool |
( |
| ) |
const |
|
inline |
◆ operator double()
XML::Value::operator double |
( |
| ) |
const |
|
inline |
◆ operator int()
XML::Value::operator int |
( |
| ) |
const |
|
inline |
◆ operator std::string()
XML::Value::operator std::string |
( |
| ) |
const |
|
inline |
◆ operator std::string_view()
XML::Value::operator std::string_view |
( |
| ) |
const |
|
inline |
◆ operator=() [1/4]
Value& XML::Value::operator= |
( |
bool |
b | ) |
|
|
inline |
◆ operator=() [2/4]
Value& XML::Value::operator= |
( |
const std::string & |
s | ) |
|
|
inline |
◆ operator=() [3/4]
Value& XML::Value::operator= |
( |
double |
d | ) |
|
|
inline |
◆ operator=() [4/4]
Value& XML::Value::operator= |
( |
int |
i | ) |
|
|
inline |
◆ False
std::string XML::Value::False = "false" |
|
inlinestatic |
◆ True
std::string XML::Value::True = "true" |
|
inlinestatic |
◆ value
std::string XML::Value::value |
The documentation for this struct was generated from the following file: