Medical Imaging Interaction Toolkit  2018.4.99-701c8286
Medical Imaging Interaction Toolkit
mitk::StringProperty Class Reference

Property for strings. More...

#include <mitkStringProperty.h>

Inheritance diagram for mitk::StringProperty:
Collaboration diagram for mitk::StringProperty:

Public Types

typedef StringProperty Self
 
typedef BaseProperty Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::string ValueType
 
- Public Types inherited from mitk::BaseProperty
typedef BaseProperty Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

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
 
- 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...
 
BasePropertyoperator= (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
 

Detailed Description

Property for strings.

Definition at line 34 of file mitkStringProperty.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

◆ ValueType

typedef std::string mitk::StringProperty::ValueType

Definition at line 45 of file mitkStringProperty.h.

Constructor & Destructor Documentation

◆ 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]

mitk::StringProperty::StringProperty ( const StringProperty )
protected

Member Function Documentation

◆ Clone()

Pointer mitk::StringProperty::Clone ( ) const

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::StringProperty::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 45 of file mitkStringProperty.h.

◆ GetClassName()

virtual const char* mitk::StringProperty::GetClassName ( ) const
virtual

Reimplemented from mitk::BaseProperty.

◆ GetStaticNameOfClass()

static const char* mitk::StringProperty::GetStaticNameOfClass ( )
inlinestatic

Definition at line 45 of file mitkStringProperty.h.

◆ GetValue()

virtual const char* mitk::StringProperty::GetValue ( ) const
virtual

Referenced by mitk::DataNode::GetName().

◆ GetValueAsString()

std::string mitk::StringProperty::GetValueAsString ( ) const
overridevirtual

Reimplemented from mitk::BaseProperty.

◆ New() [1/3]

static Pointer mitk::StringProperty::New ( )
static

Referenced by mitk::DataNode::SetName().

◆ New() [2/3]

static Pointer mitk::StringProperty::New ( const char *  _arg)
inlinestatic

Definition at line 50 of file mitkStringProperty.h.

◆ New() [3/3]

static Pointer mitk::StringProperty::New ( const std::string &  _arg)
inlinestatic

Definition at line 51 of file mitkStringProperty.h.

◆ SetValue()

virtual void mitk::StringProperty::SetValue ( const char *  _arg)
virtual

Member Data Documentation

◆ m_Value

std::string mitk::StringProperty::m_Value
protected

Definition at line 37 of file mitkStringProperty.h.

◆ PATH

const char* mitk::StringProperty::PATH
static

Definition at line 58 of file mitkStringProperty.h.


The documentation for this class was generated from the following file: