13 #ifndef mitkStringProperty_h
14 #define mitkStringProperty_h
16 #include <itkConfigure.h>
54 itkFactorylessNewMacro(Self);
63 itkGetStringMacro(Value);
69 itkSetStringMacro(Value);
96 using BaseProperty::operator=;
102 bool IsEqual(
const BaseProperty &property)
const override;
Abstract base class for properties.
Property for storing string values.
StringProperty(const StringProperty &)
mitkClassMacro(StringProperty, BaseProperty)
StringProperty(const char *string=nullptr)
std::string ValueType
The type of the value stored by this property.
bool FromJSON(const nlohmann::json &j) override
Deserialize the string value from JSON.
StringProperty(const std::string &s)
mitkNewMacro1Param(StringProperty, const std::string &)
mitkNewMacro1Param(StringProperty, const char *)
mitkCloneMacro(StringProperty)
bool ToJSON(nlohmann::json &j) const override
Serialize the string value to JSON.
static const char * PATH
Constant used as a convention for properties representing file paths.
std::string GetValueAsString() const override
Return the property value as a string.
Find image slices visible on a given plane.