Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.48 $
+ Date: $Date: 2005/11/28 15:30:03 $
+ Version: $Revision: 1.49 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
} \
}
#define gdcmAssertMacro(msg) \
- gdcmAssertBodyMacro(this,msg)
+ gdcmAssertBodyMacro(NULL,msg)
#define gdcmStaticAssertMacro(msg) \
gdcmAssertBodyMacro(NULL,msg)
Program: gdcm
Module: $RCSfile: gdcmDicomEntry.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2005/11/28 15:30:04 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#define GDCMDICOMENTRY_H
#include "gdcmCommon.h"
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmVRKey.h"
#include "gdcmTagKey.h"
* - the VM (Value Multiplicity)
* - the corresponding name in english
*/
-class GDCM_EXPORT DicomEntry : public CommandManager
+class GDCM_EXPORT DicomEntry : public RefCounter
{
gdcmTypeMacro(DicomEntry);
Program: gdcm
Module: $RCSfile: gdcmDictEntry.cxx,v $
Language: C++
- Date: $Date: 2005/10/27 14:12:24 $
- Version: $Revision: 1.55 $
+ Date: $Date: 2005/11/28 15:30:04 $
+ Version: $Revision: 1.56 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
void DictEntry::SetVR(VRKey const &vr)
{
- if ( IsVRUnknown() )
- {
- DicomEntry::SetVR(vr);
- }
- else
- {
- gdcmErrorMacro( "Overwriting VR might compromise a dictionary");
- }
+ gdcmAssertMacro( IsVRUnknown() );
+ DicomEntry::SetVR(vr);
}
/**
*/
void DictEntry::SetVM(TagName const &vm)
{
- if ( IsVMUnknown() )
- {
- VM = vm;
- }
- else
- {
- gdcmErrorMacro( "Overwriting VM might compromise a dictionary");
- }
+ gdcmAssertMacro( IsVMUnknown() );
+ VM = vm;
}
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.103 $
+ Date: $Date: 2005/11/28 15:30:04 $
+ Version: $Revision: 1.104 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int tempSwapCode = SwapCode;
if ( IsPrivateGETransferSyntax )
{
- gdcmWarningMacro(" IsPrivateGETransferSyntax found; turn the SwapCode");
+ gdcmStaticWarningMacro(" IsPrivateGETransferSyntax found; turn the SwapCode");
// PrivateGETransferSyntax only exists for 'true' Dicom images
// we assume there is no 'exotic' 32 bits endianess!
if (SwapCode == 1234)