Medical Imaging Interaction Toolkit  2018.4.99-18ddd2ed
Medical Imaging Interaction Toolkit
mitk::ConfigurationHolder Class Reference

#include <mitkConfigurationHolder.h>

Public Types

enum  ValueType {
  DT_UNINIZIALIZED, DT_BOOL, DT_UINT, DT_INT,
  DT_DOUBLE, DT_STRING, DT_GROUP
}
 

Public Member Functions

 ConfigurationHolder ()
 
void SetBool (bool value)
 
void SetUnsignedInt (unsigned int value)
 
void SetInt (int value)
 
void SetDouble (double value)
 
void SetString (std::string value)
 
void ClearGroup ()
 
void AddToGroup (std::string id, const ConfigurationHolder &value)
 
bool AsBool ()
 
unsigned int AsUnsignedInt ()
 
int AsInt ()
 
double AsDouble ()
 
std::string AsString ()
 
bool AsBool (bool value)
 
unsigned int AsUnsignedInt (unsigned int value)
 
int AsInt (int value)
 
double AsDouble (double value)
 
std::string AsString (std::string value)
 
std::vector< std::string > AsStringVector ()
 
ConfigurationHolderAt (std::string id)
 

Detailed Description

Definition at line 28 of file mitkConfigurationHolder.h.

Member Enumeration Documentation

◆ ValueType

Enumerator
DT_UNINIZIALIZED 
DT_BOOL 
DT_UINT 
DT_INT 
DT_DOUBLE 
DT_STRING 
DT_GROUP 

Definition at line 31 of file mitkConfigurationHolder.h.

Constructor & Destructor Documentation

◆ ConfigurationHolder()

mitk::ConfigurationHolder::ConfigurationHolder ( )

Definition at line 18 of file mitkConfigurationHolder.cpp.

Member Function Documentation

◆ AddToGroup()

void mitk::ConfigurationHolder::AddToGroup ( std::string  id,
const ConfigurationHolder value 
)

Definition at line 60 of file mitkConfigurationHolder.cpp.

References DT_GROUP.

◆ AsBool() [1/2]

bool mitk::ConfigurationHolder::AsBool ( )

Definition at line 66 of file mitkConfigurationHolder.cpp.

References DT_BOOL, DT_DOUBLE, DT_GROUP, DT_INT, DT_STRING, DT_UINT, DT_UNINIZIALIZED, and mitkThrow.

Referenced by AsBool().

◆ AsBool() [2/2]

bool mitk::ConfigurationHolder::AsBool ( bool  value)

Definition at line 255 of file mitkConfigurationHolder.cpp.

References AsBool().

◆ AsDouble() [1/2]

double mitk::ConfigurationHolder::AsDouble ( )

Definition at line 167 of file mitkConfigurationHolder.cpp.

References DT_BOOL, DT_DOUBLE, DT_GROUP, DT_INT, DT_STRING, DT_UINT, DT_UNINIZIALIZED, and mitkThrow.

Referenced by AsDouble().

◆ AsDouble() [2/2]

double mitk::ConfigurationHolder::AsDouble ( double  value)

Definition at line 288 of file mitkConfigurationHolder.cpp.

References AsDouble().

◆ AsInt() [1/2]

int mitk::ConfigurationHolder::AsInt ( )

Definition at line 132 of file mitkConfigurationHolder.cpp.

References DT_BOOL, DT_DOUBLE, DT_GROUP, DT_INT, DT_STRING, DT_UINT, DT_UNINIZIALIZED, and mitkThrow.

Referenced by AsInt().

◆ AsInt() [2/2]

int mitk::ConfigurationHolder::AsInt ( int  value)

Definition at line 277 of file mitkConfigurationHolder.cpp.

References AsInt().

◆ AsString() [1/2]

std::string mitk::ConfigurationHolder::AsString ( )

Definition at line 202 of file mitkConfigurationHolder.cpp.

References DT_BOOL, DT_DOUBLE, DT_GROUP, DT_INT, DT_STRING, DT_UINT, DT_UNINIZIALIZED, and mitkThrow.

Referenced by AsString().

◆ AsString() [2/2]

std::string mitk::ConfigurationHolder::AsString ( std::string  value)

Definition at line 299 of file mitkConfigurationHolder.cpp.

References AsString().

◆ AsStringVector()

std::vector< std::string > mitk::ConfigurationHolder::AsStringVector ( )

Definition at line 237 of file mitkConfigurationHolder.cpp.

References DT_GROUP, and mitkThrow.

◆ AsUnsignedInt() [1/2]

unsigned int mitk::ConfigurationHolder::AsUnsignedInt ( )

Definition at line 97 of file mitkConfigurationHolder.cpp.

References DT_BOOL, DT_DOUBLE, DT_GROUP, DT_INT, DT_STRING, DT_UINT, DT_UNINIZIALIZED, and mitkThrow.

Referenced by AsUnsignedInt().

◆ AsUnsignedInt() [2/2]

unsigned int mitk::ConfigurationHolder::AsUnsignedInt ( unsigned int  value)

Definition at line 266 of file mitkConfigurationHolder.cpp.

References AsUnsignedInt().

◆ At()

mitk::ConfigurationHolder & mitk::ConfigurationHolder::At ( std::string  id)

Definition at line 250 of file mitkConfigurationHolder.cpp.

◆ ClearGroup()

void mitk::ConfigurationHolder::ClearGroup ( )

Definition at line 54 of file mitkConfigurationHolder.cpp.

References DT_GROUP.

◆ SetBool()

void mitk::ConfigurationHolder::SetBool ( bool  value)

Definition at line 24 of file mitkConfigurationHolder.cpp.

References DT_BOOL.

◆ SetDouble()

void mitk::ConfigurationHolder::SetDouble ( double  value)

Definition at line 42 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE.

◆ SetInt()

void mitk::ConfigurationHolder::SetInt ( int  value)

Definition at line 36 of file mitkConfigurationHolder.cpp.

References DT_INT.

◆ SetString()

void mitk::ConfigurationHolder::SetString ( std::string  value)

Definition at line 48 of file mitkConfigurationHolder.cpp.

References DT_STRING.

◆ SetUnsignedInt()

void mitk::ConfigurationHolder::SetUnsignedInt ( unsigned int  value)

Definition at line 30 of file mitkConfigurationHolder.cpp.

References DT_UINT.


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