PCL
|
An identifier-value association. More...
#include <Property.h>
Public Types | |
using | data_type = value_type::data_type |
using | identifier_type = IsoString |
using | value_type = Variant |
Public Member Functions | |
Property ()=default | |
Property (const identifier_type &identifier) | |
Property (const identifier_type &identifier, const value_type &value) | |
Property (const Property &)=default | |
Property (Property &&)=default | |
virtual | ~Property () |
PropertyDescription | Description () const |
const identifier_type & | Id () const |
const identifier_type & | Identifier () const |
bool | IsValid () const |
bool | operator< (const Property &other) const |
Property & | operator= (const Property &)=default |
Property & | operator= (Property &&)=default |
bool | operator== (const Property &other) const |
void | SetValue (const value_type &value) |
data_type | Type () const |
const value_type & | Value () const |
Static Public Member Functions | |
static bool | IsValidIdentifier (const IsoString &id) |
Property is a simple identifier-value association, useful to transport properties associated with views and images on the PixInsight platform.
The View and FileFormatInstance classes include member functions to generate PropertyArray containers, namely View::Properties(), FileFormatInstance::ReadProperties() and FileFormatInstance::ReadImageProperties().
Definition at line 78 of file Property.h.
using pcl::Property::data_type = value_type::data_type |
Represents the data type of a property value.
Definition at line 95 of file Property.h.
Represents the string class used to transport property identifiers.
Definition at line 85 of file Property.h.
using pcl::Property::value_type = Variant |
Represents the class used to transport property values.
Definition at line 90 of file Property.h.
|
default |
Default constructor. Constructs an invalid Property object with an empty property identifier and an invalid property value.
|
default |
Copy constructor.
|
default |
Move constructor.
|
inline |
Constructs a Property object with the specified property identifier and property value.
Definition at line 117 of file Property.h.
|
inline |
Constructs a Property object with the specified property identifier and an undefined (invalid) property value.
Definition at line 127 of file Property.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 145 of file Property.h.
|
inline |
Returns a description of this property, including its identifier and value data type.
Definition at line 196 of file Property.h.
|
inline |
Returns the property identifier. This function is a convenience synonym for Identifier().
Definition at line 161 of file Property.h.
Referenced by pcl::FileFormatInstance::WriteImageProperty(), and pcl::FileFormatInstance::WriteProperty().
|
inline |
Returns the property identifier.
Definition at line 152 of file Property.h.
|
inline |
Returns true iff this property is valid. A valid property has a valid identifier and a valid value.
Definition at line 227 of file Property.h.
|
inlinestatic |
Returns true iff the specified string id is a valid property identifier. Refer to XISF::IsValidPropertyId() for property identifier syntax rules.
Definition at line 206 of file Property.h.
Referenced by pcl::XISF::IsValidPropertyId().
|
inline |
Less than operator. Returns true iff this property precedes other property.
For comparisons of Property objects, only their identifiers are taken into account. Keep in mind that this operator compares properties, not their values.
Definition at line 252 of file Property.h.
Copy assignment operator. Returns a reference to this object.
Move assignment operator. Returns a reference to this object.
|
inline |
Equality operator. Returns true iff this property is equal to other property.
Two Property objects are equal if their identifiers are equal. Keep in mind that this operator compares properties, not their values.
Definition at line 239 of file Property.h.
|
inline |
Assigns the specified value to this property. The previous value will be replaced with the new one and hence will be lost.
Definition at line 178 of file Property.h.
|
inline |
Returns the data type of this property, which is the data type of its value.
Definition at line 187 of file Property.h.
|
inline |
Returns the property value.
Definition at line 169 of file Property.h.
Referenced by pcl::FileFormatInstance::WriteImageProperty(), and pcl::FileFormatInstance::WriteProperty().