Medical Imaging Interaction Toolkit  2016.11.0
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 32 of file mitkConfigurationHolder.h.

Member Enumeration Documentation

Enumerator
DT_UNINIZIALIZED 
DT_BOOL 
DT_UINT 
DT_INT 
DT_DOUBLE 
DT_STRING 
DT_GROUP 

Definition at line 35 of file mitkConfigurationHolder.h.

Constructor & Destructor Documentation

mitk::ConfigurationHolder::ConfigurationHolder ( )

Definition at line 22 of file mitkConfigurationHolder.cpp.

Member Function Documentation

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

Definition at line 64 of file mitkConfigurationHolder.cpp.

bool mitk::ConfigurationHolder::AsBool ( )

Definition at line 70 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE, DT_INT, and mitkThrow.

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

Definition at line 259 of file mitkConfigurationHolder.cpp.

double mitk::ConfigurationHolder::AsDouble ( )

Definition at line 171 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE, DT_INT, and mitkThrow.

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

Definition at line 292 of file mitkConfigurationHolder.cpp.

int mitk::ConfigurationHolder::AsInt ( )

Definition at line 136 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE, DT_INT, and mitkThrow.

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

Definition at line 281 of file mitkConfigurationHolder.cpp.

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

Definition at line 206 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE, DT_INT, and mitkThrow.

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

Definition at line 303 of file mitkConfigurationHolder.cpp.

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

Definition at line 241 of file mitkConfigurationHolder.cpp.

References mitkThrow.

unsigned int mitk::ConfigurationHolder::AsUnsignedInt ( )

Definition at line 101 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE, DT_INT, and mitkThrow.

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

Definition at line 270 of file mitkConfigurationHolder.cpp.

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

Definition at line 254 of file mitkConfigurationHolder.cpp.

void mitk::ConfigurationHolder::ClearGroup ( )

Definition at line 58 of file mitkConfigurationHolder.cpp.

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

Definition at line 28 of file mitkConfigurationHolder.cpp.

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

Definition at line 46 of file mitkConfigurationHolder.cpp.

References DT_DOUBLE.

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

Definition at line 40 of file mitkConfigurationHolder.cpp.

References DT_INT.

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

Definition at line 52 of file mitkConfigurationHolder.cpp.

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

Definition at line 34 of file mitkConfigurationHolder.cpp.


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