5 #include "../../object.h" 6 #include "../../ustring.h" 31 const xtd::ustring& value()
const noexcept {
return value_;}
32 template<
typename value_t>
33 uintptr value()
const noexcept {
return xtd::parse<value_t>(value_);}
51 template<
typename value_t>
56 sbyte to_int8()
const {
return xtd::parse<sbyte>(value_);}
57 int16 to_int16()
const {
return xtd::parse<int16>(value_);}
58 int32 to_int32()
const {
return xtd::parse<int32>(value_);}
59 int64 to_int64()
const {
return xtd::parse<int64>(value_);}
60 intptr to_intptr()
const {
return xtd::parse<intptr>(value_);}
63 xtd::byte to_uint8()
const {
return xtd::parse<xtd::byte>(value_);}
64 uint16 to_uint16()
const {
return xtd::parse<uint16>(value_);}
65 uint32 to_uint32()
const {
return xtd::parse<uint32>(value_);}
66 uint64 to_uint64()
const {
return xtd::parse<uint64>(value_);}
67 uintptr to_uintptr()
const {
return xtd::parse<uintptr>(value_);}
68 template<
typename value_t>
69 uintptr to()
const {
return xtd::parse<value_t>(value_);}
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition: types.h:173
xtd::ustring to_string() const noexcept override
Returns a sxd::ustring that represents the current object.
Definition: property.h:62
Definition: property.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition: types.h:228
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
double parse< double >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition: parse.h:198
uintmax_t uintptr
Represent a pointer or a handle.
Definition: types.h:261
bool parse< bool >(const std::string &str)
Convert a string into a type.
Definition: parse.h:360
float parse< float >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition: parse.h:180
int_least16_t int16
Represents a 16-bit signed integer.
Definition: types.h:118
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition: types.h:250
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:140
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition: types.h:39
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239