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

Method PrintSelf

Modules/Core/src/DataManagement/mitkBaseData.cpp:267–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void mitk::BaseData::PrintSelf(std::ostream &os, itk::Indent indent) const
268{
269 os << std::endl;
270 os << indent << " TimeGeometry: ";
271 if (GetTimeGeometry() == nullptr)
272 os << "nullptr" << std::endl;
273 else
274 GetTimeGeometry()->Print(os, indent);
275 // print out all properties
276 PropertyList::Pointer propertyList = this->GetPropertyList();
277 if (propertyList.IsNotNull() && !propertyList->IsEmpty())
278 {
279 // general headline
280 os << "Properties of BaseData:" << std::endl;
281
282 const PropertyList::PropertyMap *map = propertyList->GetMap();
283 for (auto iter = map->begin(); iter != map->end(); ++iter)
284 {
285 os << " " << (*iter).first << " " << (*iter).second->GetValueAsString() << std::endl;
286 }
287 }
288}
289
290mitk::BaseProperty::ConstPointer mitk::BaseData::GetConstProperty(const std::string &propertyKey, const std::string &contextName, bool fallBackOnDefaultContext) const
291{

Callers

nothing calls this directly

Calls 8

GetPropertyListMethod · 0.95
IsNotNullMethod · 0.80
GetTimeGeometryFunction · 0.50
PrintMethod · 0.45
IsEmptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
GetValueAsStringMethod · 0.45

Tested by

no test coverage detected