MCPcopy Create free account
hub / github.com/MITK/MITK / GetFlag

Method GetFlag

Modules/DICOM/src/mitkDICOMImageBlockDescriptor.cpp:399–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool mitk::DICOMImageBlockDescriptor::GetFlag( const std::string& key, bool defaultValue ) const
400{
401 this->UpdateImageDescribingProperties();
402 BoolProperty::ConstPointer boolProp = dynamic_cast<BoolProperty*>( this->GetProperty( key ) );
403 if ( boolProp.IsNotNull() )
404 {
405 return boolProp->GetValue();
406 }
407 else
408 {
409 return defaultValue;
410 }
411}
412
413void mitk::DICOMImageBlockDescriptor::SetIntProperty( const std::string& key, int value )
414{

Callers 2

LoadImagesMethod · 0.80

Calls 4

GetPropertyMethod · 0.95
IsNotNullMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected