6 #include "../../object.h"
7 #include "../../ustring.h"
31 template<
typename value_t>
35 template<
typename value_t>
36 uintptr_t value()
const {
return xtd::parse<value_t>(value_);}
41 int16_t to_int16()
const {
return xtd::parse<int16_t>(value_);}
42 int32_t to_int32()
const {
return xtd::parse<int32_t>(value_);}
43 int64_t to_int64()
const {
return xtd::parse<int64_t>(value_);}
44 intptr_t to_intptr()
const {
return xtd::parse<intptr_t>(value_);}
47 uint8_t to_uint8()
const {
return xtd::parse<uint8_t>(value_);}
48 uint16_t to_uint16()
const {
return xtd::parse<uint16_t>(value_);}
49 uint32_t to_uint32()
const {
return xtd::parse<uint32_t>(value_);}
50 uint64_t to_uint64()
const {
return xtd::parse<uint64_t>(value_);}
51 uintptr_t to_uintptr()
const {
return xtd::parse<uintptr_t>(value_);}
52 template<
typename value_t>
53 uintptr_t to()
const {
return xtd::parse<value_t>(value_);}
55 friend std::ostream& operator <<(std::ostream& os,
const property& property) noexcept {
return os <<
property.to_string();}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Definition: property.h:13
xtd::ustring to_string() const noexcept override
Returns a std::string that represents the current object.
Definition: property.h:46
double parse< double >(const std::string &str, number_styles styles)
Convert a type into a string.
Definition: parse.h:166
int8_t parse< int8_t >(const std::string &str, number_styles styles)
Convert a type into a string.
Definition: parse.h:58
bool parse< bool >(const std::string &str)
Convert a type into a string.
Definition: parse.h:310
float parse< float >(const std::string &str, number_styles styles)
Convert a type into a string.
Definition: parse.h:157
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17