Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Property for strings. More...
#include <mitkStringProperty.h>
Public Types | |
typedef StringProperty | Self |
typedef BaseProperty | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef std::string | ValueType |
Public Types inherited from mitk::BaseProperty | |
typedef BaseProperty | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual const char * | GetValue () const |
virtual void | SetValue (const char *_arg) |
std::string | GetValueAsString () const override |
bool | ToJSON (nlohmann::json &j) const override |
Serialize property value(s) to JSON. More... | |
bool | FromJSON (const nlohmann::json &j) override |
Deserialize property value(s) from JSON. More... | |
BaseProperty & | operator= (const BaseProperty &property) |
Assigns property to this BaseProperty instance. More... | |
Public Member Functions inherited from mitk::BaseProperty | |
Pointer | Clone () const |
bool | operator== (const BaseProperty &property) const |
Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More... | |
BaseProperty & | operator= (const BaseProperty &property) |
Assigns property to this BaseProperty instance. More... | |
bool | AssignProperty (const BaseProperty &property) |
Assigns property to this BaseProperty instance. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static Pointer | New (const char *_arg) |
static Pointer | New (const std::string &_arg) |
Static Public Member Functions inherited from mitk::BaseProperty | |
static const char * | GetStaticNameOfClass () |
Static Public Attributes | |
static const char * | PATH |
Static Public Attributes inherited from mitk::BaseProperty | |
static const std::string | VALUE_CANNOT_BE_CONVERTED_TO_STRING |
Default return value if a property which can not be returned as string. More... | |
Protected Member Functions | |
StringProperty (const char *string=nullptr) | |
StringProperty (const std::string &s) | |
StringProperty (const StringProperty &) | |
Protected Member Functions inherited from mitk::BaseProperty | |
BaseProperty () | |
BaseProperty (const BaseProperty &other) | |
~BaseProperty () override | |
Protected Attributes | |
std::string | m_Value |
Property for strings.
Definition at line 34 of file mitkStringProperty.h.
typedef itk::SmartPointer<const Self> mitk::StringProperty::ConstPointer |
Definition at line 45 of file mitkStringProperty.h.
Definition at line 45 of file mitkStringProperty.h.
Definition at line 45 of file mitkStringProperty.h.
Definition at line 45 of file mitkStringProperty.h.
typedef std::string mitk::StringProperty::ValueType |
Definition at line 45 of file mitkStringProperty.h.
|
protected |
|
protected |
|
protected |
Pointer mitk::StringProperty::Clone | ( | ) | const |
|
overridevirtual |
Deserialize property value(s) from JSON.
Rely on exceptions for error handling when implementing deserialization.
Implements mitk::BaseProperty.
|
inlineoverridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 45 of file mitkStringProperty.h.
|
virtual |
Reimplemented from mitk::BaseProperty.
|
inlinestatic |
Definition at line 45 of file mitkStringProperty.h.
|
virtual |
Referenced by mitk::DataNode::GetName().
|
overridevirtual |
Reimplemented from mitk::BaseProperty.
|
static |
|
inlinestatic |
Definition at line 50 of file mitkStringProperty.h.
|
inlinestatic |
Definition at line 51 of file mitkStringProperty.h.
BaseProperty& mitk::BaseProperty::operator= |
Assigns property to this BaseProperty instance.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling of polymorphic assignments. The assignment operator of the subclass should be disabled and the baseclass operator should be made visible using "using" statements.
|
virtual |
Referenced by mitk::DataNode::SetName().
|
overridevirtual |
Serialize property value(s) to JSON.
Rely on exceptions for error handling when implementing serialization.
Implements mitk::BaseProperty.
|
protected |
Definition at line 37 of file mitkStringProperty.h.
|
static |
Definition at line 61 of file mitkStringProperty.h.