ITK  4.8.0
Insight Segmentation and Registration Toolkit
SphinxExamples/src/Core/Common/GetNameOfClass/Code.cxx
#include "itkImage.h"
int main(int, char*[])
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
ImageType::Pointer image = ImageType::New();
std::cout << "image is type: " << image->GetNameOfClass() << std::endl;
return EXIT_SUCCESS;
}