Skip to content

Commit 8de372e

Browse files
authored
Merge pull request #5451 from N-Dekker/ITK_LEGACY_REMOVE-UnknownType
STYLE: Deprecate `UnknownType` from both ImageIOBase and MeshIOBase
2 parents 09305ce + 8a52861 commit 8de372e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Modules/IO/ImageBase/include/itkImageIOBase.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ class ITKIOImageBase_EXPORT ImageIOBase : public LightProcessObject
9999
using IndexValueType = itk::IndexValueType;
100100
using SizeValueType = itk::SizeValueType;
101101

102+
#ifndef ITK_LEGACY_REMOVE
102103
/**
103104
* \class UnknownType
104-
* Used to return information when types are unknown.
105+
* \deprecated This class is intended to be removed from ITK 6.
105106
* \ingroup ITKIOImageBase
106107
*/
107-
class UnknownType
108+
class [[deprecated("This class is intended to be removed from ITK 6.")]] UnknownType
108109
{};
110+
#endif
109111

110112
#if !defined(ITK_LEGACY_REMOVE)
111113
/**Exposes enums values for backwards compatibility*/

Modules/IO/MeshBase/include/itkMeshIOBase.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ class ITKIOMeshBase_EXPORT MeshIOBase : public LightProcessObject
8989

9090
using SizeValueType = IdentifierType;
9191

92+
#ifndef ITK_LEGACY_REMOVE
9293
/**
9394
* \class UnknownType
94-
* Used to return information when types are unknown.
95+
* \deprecated This class is intended to be removed from ITK 6.
9596
* \ingroup ITKIOMeshBase
9697
*/
97-
class UnknownType
98+
class [[deprecated("This class is intended to be removed from ITK 6.")]] UnknownType
9899
{};
100+
#endif
99101

100102
/** \see LightObject::GetNameOfClass() */
101103
itkOverrideGetNameOfClassMacro(MeshIOBase);

0 commit comments

Comments
 (0)