10#ifndef BITPROPVARIANT_HPP
11#define BITPROPVARIANT_HPP
16#include "bitdefines.hpp"
17#include "bittypes.hpp"
18#include "bitwindows.hpp"
116 PhySizeCantBeDetected,
288 template<
typename T >
340 BIT7Z_NODISCARD auto
getInt8() const -> int8_t;
380 BIT7Z_NODISCARD auto
isEmpty() const noexcept ->
bool;
385 BIT7Z_NODISCARD auto
isBool() const noexcept ->
bool;
390 BIT7Z_NODISCARD auto
isString() const noexcept ->
bool;
395 BIT7Z_NODISCARD auto
isUInt8() const noexcept ->
bool;
400 BIT7Z_NODISCARD auto
isUInt16() const noexcept ->
bool;
405 BIT7Z_NODISCARD auto
isUInt32() const noexcept ->
bool;
410 BIT7Z_NODISCARD auto
isUInt64() const noexcept ->
bool;
415 BIT7Z_NODISCARD auto
isInt8() const noexcept ->
bool;
420 BIT7Z_NODISCARD auto
isInt16() const noexcept ->
bool;
425 BIT7Z_NODISCARD auto
isInt32() const noexcept ->
bool;
430 BIT7Z_NODISCARD auto
isInt64() const noexcept ->
bool;
448 void internalClear() noexcept;
The main namespace of the bit7z library.
Definition bit7zlibrary.hpp:30
BitProperty
The BitProperty enum represents the archive/item properties that 7-zip can read or write.
Definition bitpropvariant.hpp:30
BitPropVariantType
The BitPropVariantType enum represents the possible types that a BitPropVariant can store.
Definition bitpropvariant.hpp:132
@ String
String BitPropVariant type.
@ Int16
16-bit signed int BitPropVariant type
@ FileTime
FILETIME BitPropVariant type.
@ Int8
8-bit signed int BitPropVariant type
@ UInt16
16-bit unsigned int BitPropVariant type
@ UInt64
64-bit unsigned int BitPropVariant type
@ UInt8
8-bit unsigned int BitPropVariant type
@ Int32
32-bit signed int BitPropVariant type
@ Bool
Boolean BitPropVariant type.
@ Empty
Empty BitPropVariant type.
@ UInt32
32-bit unsigned int BitPropVariant type
@ Int64
64-bit signed int BitPropVariant type
The BitPropVariant struct is a light extension to the WinAPI PROPVARIANT struct providing useful gett...
Definition bitpropvariant.hpp:150
void clear() noexcept
Clears the current value of the variant object.
auto getTimePoint() const -> time_type
auto getInt8() const -> int8_t
auto isInt8() const noexcept -> bool
auto isString() const noexcept -> bool
auto isInt64() const noexcept -> bool
auto getFileTime() const -> FILETIME
BitPropVariant(int16_t value) noexcept
Constructs a 16-bit integer BitPropVariant.
auto getBool() const -> bool
BitPropVariant(uint32_t value) noexcept
Constructs a 32-bit unsigned integer BitPropVariant.
BitPropVariant(FILETIME value) noexcept
Constructs a FILETIME BitPropVariant.
auto toString() const -> tstring
BitPropVariant(uint16_t value) noexcept
Constructs a 16-bit unsigned integer BitPropVariant.
BitPropVariant(uint8_t value) noexcept
Constructs an 8-bit unsigned integer BitPropVariant.
auto getString() const -> tstring
BitPropVariant()
Constructs an empty BitPropVariant object.
auto operator=(const T &value) noexcept(std::is_integral< T >::value) -> BitPropVariant &
Assignment operator.
Definition bitpropvariant.hpp:289
auto isUInt32() const noexcept -> bool
auto isInt16() const noexcept -> bool
auto getUInt32() const -> uint32_t
auto isBool() const noexcept -> bool
~BitPropVariant()
BitPropVariant destructor.
auto getInt16() const -> int16_t
BitPropVariant(int8_t value) noexcept
Constructs an 8-bit integer BitPropVariant.
auto getNativeString() const -> native_string
auto getUInt16() const -> uint16_t
BitPropVariant(int32_t value) noexcept
Constructs a 32-bit integer BitPropVariant.
auto getUInt8() const -> uint8_t
auto type() const -> BitPropVariantType
auto getUInt64() const -> uint64_t
BitPropVariant(int64_t value) noexcept
Constructs a 64-bit integer BitPropVariant.
BitPropVariant(const std::wstring &value)
Constructs a string BitPropVariant from a wstring.
auto isUInt64() const noexcept -> bool
auto isInt32() const noexcept -> bool
BitPropVariant(uint64_t value) noexcept
Constructs a 64-bit unsigned integer BitPropVariant.
auto isUInt8() const noexcept -> bool
auto isEmpty() const noexcept -> bool
auto getInt32() const -> int32_t
auto operator=(BitPropVariant &&other) noexcept -> BitPropVariant &
Move assignment operator.
auto getInt64() const -> int64_t
BitPropVariant(BitPropVariant &&other) noexcept
Move constructs this BitPropVariant from another one.
BitPropVariant(const wchar_t *value)
Constructs a string BitPropVariant from a null-terminated C wide string.
BitPropVariant(const BitPropVariant &other)
Copy constructs this BitPropVariant from another one.
auto isFileTime() const noexcept -> bool
auto operator=(const BitPropVariant &other) -> BitPropVariant &
Copy assignment operator.
auto isUInt16() const noexcept -> bool
BitPropVariant(bool value) noexcept
Constructs a boolean BitPropVariant.