bit7z 4.0.0
A C++ library for interfacing with the 7-zip shared libs.
|
The BitPropVariant struct is a light extension to the WinAPI PROPVARIANT struct providing useful getters. More...
#include <bit7z/bitpropvariant.hpp>
Inherits PROPVARIANT.
Public Member Functions | |
BitPropVariant () | |
Constructs an empty BitPropVariant object. | |
BitPropVariant (BitPropVariant &&other) noexcept | |
Move constructs this BitPropVariant from another one. | |
BitPropVariant (bool value) noexcept | |
Constructs a boolean BitPropVariant. | |
BitPropVariant (const BitPropVariant &other) | |
Copy constructs this BitPropVariant from another one. | |
BitPropVariant (const std::wstring &value) | |
Constructs a string BitPropVariant from a wstring. | |
BitPropVariant (const wchar_t *value) | |
Constructs a string BitPropVariant from a null-terminated C wide string. | |
BitPropVariant (FILETIME value) noexcept | |
Constructs a FILETIME BitPropVariant. | |
BitPropVariant (int16_t value) noexcept | |
Constructs a 16-bit integer BitPropVariant. | |
BitPropVariant (int32_t value) noexcept | |
Constructs a 32-bit integer BitPropVariant. | |
BitPropVariant (int64_t value) noexcept | |
Constructs a 64-bit integer BitPropVariant. | |
BitPropVariant (int8_t value) noexcept | |
Constructs an 8-bit integer BitPropVariant. | |
BitPropVariant (uint16_t value) noexcept | |
Constructs a 16-bit unsigned integer BitPropVariant. | |
BitPropVariant (uint32_t value) noexcept | |
Constructs a 32-bit unsigned integer BitPropVariant. | |
BitPropVariant (uint64_t value) noexcept | |
Constructs a 64-bit unsigned integer BitPropVariant. | |
BitPropVariant (uint8_t value) noexcept | |
Constructs an 8-bit unsigned integer BitPropVariant. | |
~BitPropVariant () | |
BitPropVariant destructor. | |
void | clear () noexcept |
Clears the current value of the variant object. | |
auto | getBool () const -> bool |
auto | getFileTime () const -> FILETIME |
auto | getInt16 () const -> int16_t |
auto | getInt32 () const -> int32_t |
auto | getInt64 () const -> int64_t |
auto | getInt8 () const -> int8_t |
auto | getNativeString () const -> native_string |
auto | getString () const -> tstring |
auto | getTimePoint () const -> time_type |
auto | getUInt16 () const -> uint16_t |
auto | getUInt32 () const -> uint32_t |
auto | getUInt64 () const -> uint64_t |
auto | getUInt8 () const -> uint8_t |
auto | isBool () const noexcept -> bool |
auto | isEmpty () const noexcept -> bool |
auto | isFileTime () const noexcept -> bool |
auto | isInt16 () const noexcept -> bool |
auto | isInt32 () const noexcept -> bool |
auto | isInt64 () const noexcept -> bool |
auto | isInt8 () const noexcept -> bool |
auto | isString () const noexcept -> bool |
auto | isUInt16 () const noexcept -> bool |
auto | isUInt32 () const noexcept -> bool |
auto | isUInt64 () const noexcept -> bool |
auto | isUInt8 () const noexcept -> bool |
auto | operator= (BitPropVariant &&other) noexcept -> BitPropVariant & |
Move assignment operator. | |
auto | operator= (const BitPropVariant &other) -> BitPropVariant & |
Copy assignment operator. | |
template<typename T > | |
auto | operator= (const T &value) noexcept(std::is_integral< T >::value) -> BitPropVariant & |
Assignment operator. | |
auto | toString () const -> tstring |
auto | type () const -> BitPropVariantType |
The BitPropVariant struct is a light extension to the WinAPI PROPVARIANT struct providing useful getters.
BitPropVariant | ( | ) |
Constructs an empty BitPropVariant object.
BitPropVariant | ( | const BitPropVariant & | other | ) |
Copy constructs this BitPropVariant from another one.
other | the variant to be copied. |
|
noexcept |
Move constructs this BitPropVariant from another one.
other | the variant to be moved. |
|
explicitnoexcept |
Constructs a boolean BitPropVariant.
value | the bool value of the BitPropVariant |
|
explicit |
Constructs a string BitPropVariant from a null-terminated C wide string.
value | the null-terminated C wide string value of the BitPropVariant |
|
explicit |
Constructs a string BitPropVariant from a wstring.
value | the wstring value of the BitPropVariant |
|
explicitnoexcept |
Constructs an 8-bit unsigned integer BitPropVariant.
value | the uint8_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 16-bit unsigned integer BitPropVariant.
value | the uint16_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 32-bit unsigned integer BitPropVariant.
value | the uint32_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 64-bit unsigned integer BitPropVariant.
value | the uint64_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs an 8-bit integer BitPropVariant.
value | the int8_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 16-bit integer BitPropVariant.
value | the int16_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 32-bit integer BitPropVariant.
value | the int32_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a 64-bit integer BitPropVariant.
value | the int64_t value of the BitPropVariant |
|
explicitnoexcept |
Constructs a FILETIME BitPropVariant.
value | the FILETIME value of the BitPropVariant |
~BitPropVariant | ( | ) |
BitPropVariant destructor.
|
noexcept |
Clears the current value of the variant object.
auto getBool | ( | ) | const -> bool |
auto getFileTime | ( | ) | const -> FILETIME |
auto getInt16 | ( | ) | const -> int16_t |
auto getInt32 | ( | ) | const -> int32_t |
auto getInt64 | ( | ) | const -> int64_t |
auto getInt8 | ( | ) | const -> int8_t |
auto getNativeString | ( | ) | const -> native_string |
auto getString | ( | ) | const -> tstring |
auto getTimePoint | ( | ) | const -> time_type |
auto getUInt16 | ( | ) | const -> uint16_t |
auto getUInt32 | ( | ) | const -> uint32_t |
auto getUInt64 | ( | ) | const -> uint64_t |
auto getUInt8 | ( | ) | const -> uint8_t |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Move assignment operator.
other | the variant to be moved. |
auto operator= | ( | const BitPropVariant & | other | ) | -> BitPropVariant & |
Copy assignment operator.
other | the variant to be copied. |
|
inlinenoexcept |
Assignment operator.
value | the value to be assigned to the object |
auto toString | ( | ) | const -> tstring |
auto type | ( | ) | const -> BitPropVariantType |