xtd 0.2.0
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 xtd::int32 id() const noexcept;
479 void id(xtd::int32 value) noexcept;
480
483 xtd::size len() const noexcept;
484
498 xtd::int16 type() const noexcept;
512 void type(xtd::int16 value) noexcept;
513
517 const xtd::array<xtd::byte>& value() const noexcept;
521 xtd::array<xtd::byte>& value() noexcept;
525 void value(const xtd::array<xtd::byte>& value) noexcept;
527
529
534 bool equals(const xtd::object& obj) const noexcept override;
538 bool equals(const property_item& other) const noexcept override;
539
542 xtd::size get_hash_code() const noexcept 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:61
Encapsulates a metadata property to be included in an image file. Not inheritable.
Definition property_item.hpp:25
const xtd::array< xtd::byte > & value() const noexcept
Gets the value of the property item.
xtd::int32 id() const noexcept
Gets the ID of the property.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::size len() const noexcept
Gets the length (in bytes) of the value property.
xtd::size get_hash_code() const noexcept 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:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::type_info type
Stores information about a type.
Definition type.hpp:23
@ other
The operating system is other.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31