Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2005/11/29 17:21:34 $
- Version: $Revision: 1.137 $
+ Date: $Date: 2006/02/16 20:06:14 $
+ Version: $Revision: 1.140 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// 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
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();