+2005-01-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+ * src/gdcmDebug.h : remove the Debug test in the gdcmErrorMacro
+ * src/gdcmDocument.[h|cxx] : rename the Initialise method to Initialize, to
+ be complient with all the gdcm source code
+
2005-01-19 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
- * src/gdcmDocEntry.h : DocEntry is now secure. User can't change the
+ * src/gdcmDocEntry.h : DocEntry is now secure. User can't change the
DictEntry or the VR.
2005-01-19 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/01/13 22:39:15 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2005/01/20 11:07:07 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param msg message part
*/
#ifdef NDEBUG
-#define gdcmVerboseMacro(msg)
+#define gdcmVerboseMacro(msg) \
+{ \
+}
#else
#define gdcmVerboseMacro(msg) \
{ \
#else
#define gdcmErrorMacro(msg) \
{ \
- if( Debug::GetDebugFlag() ) \
- { \
std::ostringstream osmacro; \
osmacro << "Error: In " __FILE__ ", line " << __LINE__ \
<< ", function " << GDCM_FUNCTION << '\n' \
Debug::GetDebugFile() << osmacro.str() << std::endl; \
else \
std::cerr << osmacro.str() << std::endl; \
- exit(1); \
- } \
}
#endif //NDEBUG
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2005/01/19 15:58:00 $
- Version: $Revision: 1.200 $
+ Date: $Date: 2005/01/20 11:07:07 $
+ Version: $Revision: 1.201 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
Document::Document( std::string const &filename ) : ElementSet(-1)
{
+ RLEInfo = NULL;
+ JPEGInfo = NULL;
+
SetMaxSizeLoadEntry(MAX_SIZE_LOAD_ELEMENT_VALUE);
Filename = filename;
- Initialise();
+ Initialize();
Fp = 0;
if ( !OpenFile() )
*/
Document::Document() : ElementSet(-1)
{
+ RLEInfo = NULL;
+ JPEGInfo = NULL;
+
Fp = 0;
SetMaxSizeLoadEntry(MAX_SIZE_LOAD_ELEMENT_VALUE);
- Initialise();
+ Initialize();
SwapCode = 1234;
Filetype = ExplicitVR;
Group0002Parsed = false;
RefPubDict = NULL;
RefShaDict = NULL;
- delete RLEInfo;
- delete JPEGInfo;
+ if( RLEInfo )
+ delete RLEInfo;
+ if( JPEGInfo )
+ delete JPEGInfo;
}
//-----------------------------------------------------------------------------
* \brief Loads all the needed Dictionaries
* \warning NOT end user intended method !
*/
-void Document::Initialise()
+void Document::Initialize()
{
RefPubDict = Global::GetDicts()->GetDefaultPubDict();
RefShaDict = NULL;
Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2005/01/19 08:57:14 $
- Version: $Revision: 1.92 $
+ Date: $Date: 2005/01/20 11:07:07 $
+ Version: $Revision: 1.93 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool ReadTag(uint16_t, uint16_t);
uint32_t ReadTagLength(uint16_t, uint16_t);
- void Initialise();
+ void Initialize();
bool CheckSwap();
void SwitchByteSwapCode();
void SetMaxSizeLoadEntry(long);