[IGSTK-Users] DICOMImageReader :: GetItkImage() access

Vincent Gratsac vgratsac at irisa.fr
Wed Sep 26 08:47:03 EDT 2007


Hi all,

It seems that many methods of the DICOMImageReader class are public 
instead of being private.
This problem is due to the igstkLoggerMacro :

	public: \
	  typedef ::itk::Logger                  LoggerType; \
	protected: \
	  LoggerType* GetLogger() const { return m_Logger; } \
	private: \
	  mutable LoggerType::Pointer   m_Logger; \
	public: \
	  void SetLogger(LoggerType* logger) { m_Logger = logger; }


This includes that each method declared after a call to this macro will 
be defined as public one.
So you have to specify one more time methods access after this call.

Note that this problem could be present in other classes... I did not check.

Have a nice day,

-- 
Vincent Gratsac
----------------------------------------------------
Unité/Projet VisAGeS U746
INSERM/INRIA/CNRS/U. de Rennes I
IRISA
Campus de Beaulieu, 35042 Rennes Cedex, France

Ph:  +33 (0) 2 23 23 49 20/ Fax: +33/0 2 99 84 71 71
email: Vincent.Gratsac at irisa.fr
http://www.irisa.fr/visages/
----------------------------------------------------- 


More information about the IGSTK-Users mailing list