Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2005/11/21 16:04:43 $
- Version: $Revision: 1.134 $
+ Date: $Date: 2006/05/30 08:10:19 $
+ Version: $Revision: 1.141 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmElementSet.h"
#include "gdcmException.h"
#include "gdcmDebug.h" // for LEGACY
+#include "gdcmCommandManager.h"
#include <map>
#include <list>
// Loading
//Deprecated : use SetFileName() + Load()
- //GDCM_LEGACY( virtual bool Load( std::string const &filename ) );
- virtual bool Load( std::string const &filename )
+//#ifndef GDCM_LEGACY_REMOVE
+// virtual bool Load( std::string const &filename );
+//#endif
virtual bool Load( );
// Dictionaries
bool CloseFile();
void WriteContent( std::ofstream *fp, FileType type );
-// Content entries
+// Data entries
virtual void LoadEntryBinArea(uint16_t group, uint16_t elem);
virtual void LoadEntryBinArea(DataEntry *entry);
- void LoadDocEntrySafe(DocEntry *entry);
+ void SetMaxSizeLoadEntry(long);
void AddForceLoadElement(uint16_t group, uint16_t elem);
// Ordering of Documents
// gdcm::DicomDir are meaningfull).
Document();
virtual ~Document();
-
+
+ virtual void CallStartMethod();
+ virtual void CallProgressMethod();
+ virtual void CallEndMethod();
+
uint16_t ReadInt16() throw ( FormatError );
uint32_t ReadInt32() throw ( FormatError );
- void SkipBytes(uint32_t);
+
+ /// \brief skips bytes inside the source file
+ void SkipBytes(uint32_t nBytes) { Fp->seekg((long)nBytes, std::ios::cur);}
int ComputeGroup0002Length( );
// Variables
private:
// Methods
void Initialize();
- bool DoTheLoadingDocumentJob();
+ bool DoTheLoadingDocumentJob();
// System access (meaning endian related !?)
uint16_t SwapShort(uint16_t);
bool CheckSwap();
void SwitchByteSwapCode();
- void SetMaxSizeLoadEntry(long);
// DocEntry related utilities
DocEntry *ReadNextDocEntry();
DocEntry *Backtrack(DocEntry *docEntry);
// Variables
+protected:
+ /// value of the ??? for any progress bar
+ float Progress;
+ mutable bool Abort;
+
/// Public dictionary used to parse this header
Dict *RefPubDict;
/// \brief Optional "shadow dictionary" (private elements) used to parse