Property for storing string values.
More...
#include <mitkStringProperty.h>
|
| typedef std::string | ValueType |
| | The type of the value stored by this property. More...
|
| |
Property for storing string values.
This property holds a std::string value. It is one of the most commonly used property types in MITK, for example to store names, labels, or other textual metadata associated with data objects.
- See also
- BaseProperty
-
GenericProperty
-
TemporoSpatialStringProperty
Definition at line 36 of file mitkStringProperty.h.
◆ ValueType
◆ StringProperty() [1/3]
| mitk::StringProperty::StringProperty |
( |
const char * |
string = nullptr | ) |
|
|
protected |
◆ StringProperty() [2/3]
| mitk::StringProperty::StringProperty |
( |
const std::string & |
s | ) |
|
|
protected |
◆ StringProperty() [3/3]
◆ Clone()
| Pointer mitk::StringProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
Deserialize the string value from JSON.
- Parameters
-
| [in] | j | The JSON value containing the string. |
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ GetValue()
| virtual const char* mitk::StringProperty::GetValue |
( |
| ) |
const |
|
virtual |
◆ GetValueAsString()
| std::string mitk::StringProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
Return the property value as a string.
- Returns
- The stored string value.
Reimplemented from mitk::BaseProperty.
◆ mitkClassMacro()
◆ mitkCloneMacro()
◆ mitkNewMacro1Param() [1/2]
| mitk::StringProperty::mitkNewMacro1Param |
( |
StringProperty |
, |
|
|
const char * |
|
|
) |
| |
◆ mitkNewMacro1Param() [2/2]
| mitk::StringProperty::mitkNewMacro1Param |
( |
StringProperty |
, |
|
|
const std::string & |
|
|
) |
| |
◆ New()
| static Pointer mitk::StringProperty::New |
( |
| ) |
|
|
static |
◆ operator=()
Assign a property value to this instance.
Performs a polymorphic assignment from the given property. The assignment succeeds only if the source and target properties are of the same type. The subclass-specific Assign() method is called to perform the actual value copy.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling. The copy assignment operator of the subclass should be disabled and the base class operator should be made visible using "using" statements.
- Parameters
-
| [in] | property | The property whose value should be assigned to this instance. |
- Returns
- A reference to this property.
- See also
- AssignProperty
-
Assign
◆ SetValue()
| virtual void mitk::StringProperty::SetValue |
( |
const char * |
_arg | ) |
|
|
virtual |
◆ ToJSON()
Serialize the string value to JSON.
- Parameters
-
| [out] | j | The JSON object to write the value into. |
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ m_Value
| std::string mitk::StringProperty::m_Value |
|
protected |
◆ PATH
| const char* mitk::StringProperty::PATH |
|
static |
Constant used as a convention for properties representing file paths.
Definition at line 94 of file mitkStringProperty.h.
The documentation for this class was generated from the following file: