xtd 1.0.0
Loading...
Searching...
No Matches
property_item.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/array>
6#include <xtd/iequatable>
7#include <xtd/object>
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
25 class property_item final : public xtd::object, public xtd::iequatable<property_item> {
26 public:
28 property_item() = default;
30
32
256 [[nodiscard]] auto id() const noexcept -> xtd::int32;
479 auto id(xtd::int32 value) noexcept -> void;
480
483 [[nodiscard]] auto len() const noexcept -> xtd::usize;
484
498 [[nodiscard]] auto type() const noexcept -> xtd::int16;
512 auto type(xtd::int16 value) noexcept -> void;
513
517 [[nodiscard]] auto value() const noexcept -> const xtd::array<xtd::byte>&;
521 [[nodiscard]] auto value() noexcept -> xtd::array<xtd::byte>&;
525 auto value(const xtd::array<xtd::byte>& value) noexcept -> void;
527
529
534 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
538 [[nodiscard]] auto equals(const property_item& other) const noexcept -> bool override;
539
542 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
544
545 private:
546 xtd::int32 id_ = 0;
547 xtd::int16 type_ = 1;
548 xtd::array<xtd::byte> value_;
549 };
550 }
551 }
552}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Encapsulates a metadata property to be included in an image file. Not inheritable.
Definition property_item.hpp:25
auto value() const noexcept -> const xtd::array< xtd::byte > &
Gets the value of the property item.
auto id() const noexcept -> xtd::int32
Gets the ID of the property.
auto type() const noexcept -> xtd::int16
Gets an integer that defines the type of data contained in the value property.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto len() const noexcept -> xtd::usize
Gets the length (in bytes) of the value property.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8