9 #ifndef ZYPP_CORE_PARSER_JSON_JSON_NUMBER_DEFINED 10 #define ZYPP_CORE_PARSER_JSON_JSON_NUMBER_DEFINED 33 operator double()
const {
43 {
return std::to_string (
_value); }
47 {
return str << asJSON(); }
67 Int(
const Int & ) =
default;
69 Int &operator=(
const Int &) =
default;
70 Int &operator=(
Int &&) =
default;
72 operator std::int64_t()
const {
82 {
return std::to_string (
_value); }
86 {
return str << asJSON(); }
107 UInt &operator=(
const UInt &) =
default;
110 operator std::uint64_t()
const {
120 {
return std::to_string (
_value); }
124 {
return str << asJSON(); }
std::uint64_t value() const
std::string asJSON() const
JSON representation.
ZYPP_API std::ostream & operator<<(std::ostream &str, const Bool &obj)
relates: Bool Stream output
std::string asJSON() const
JSON representation.
String related utilities and Regular expression matching.
std::string asJSON() const
JSON representation.
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
std::int64_t value() const
Provides API related macros.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::ostream & dumpOn(std::ostream &str) const
Stream output.