+ // Check IsDocumentAlreadyLoaded to be sure.
+ if( IsDocumentAlreadyLoaded )
+ {
+ gdcmWarningMacro( "A file was already parsed inside this " <<
+ "gdcm::Document (previous name was: "
+ << Filename.c_str() << ". New name is :"
+ << filename );
+ // todo : clean out the 'Document'
+ // We should call ClearEntry() on the parent object ?!?
+ }
+
+ Filename = filename;