Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2004/09/23 20:14:07 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2004/10/06 21:30:02 $
+ Version: $Revision: 1.47 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#include "gdcmException.h"
#include "gdcmDictSet.h"
#include "gdcmDocEntry.h"
+#include "gdcmRLEFramesInfo.h"
class gdcmValEntry;
class gdcmBinEntry;
/// \ref gdcmDocument::SetMaxSizePrintEntry()
static const unsigned int MAX_SIZE_PRINT_ELEMENT_VALUE;
- /// Will be set 1 if user asks to 'go inside' the 'sequences' (VR = "SQ")
- int EnableSequences;
+ /// Store the RLE frames info obtained during parsing of pixels.
+ gdcmRLEFramesInfo RLEInfo;
/// \brief Amount of printed details for each Header Entry (Dicom Element):
/// 0 : stands for the least detail level.
bool IsRLELossLessTransferSyntax();
bool IsJPEGLossless();
bool IsJPEG2000();
+ bool IsEncapsulateTransferSyntax();
bool IsDicomV3();
FileType GetFileType();
gdcmDocument( std::string const & filename );
virtual ~gdcmDocument();
- void Parse7FE0 ();
+ void ComputeRLEInfo();
// Entry
bool CheckIfEntryExistByNumber(uint16_t group, uint16_t elem );
public:
gdcmDocEntry* GetDocEntryByName (std::string const & tagName);
gdcmValEntry* GetValEntryByNumber(uint16_t group, uint16_t element);
- gdcmBinEntry* GetBinEntryByNumber(uint16_t group, uint16_t element) { /*what the hell!*/ };
+ //gdcmBinEntry* GetBinEntryByNumber(uint16_t group, uint16_t element);
void LoadDocEntrySafe(gdcmDocEntry* entry);
TagDocEntryHT* BuildFlatHashTable();
private:
// Read
- long ParseDES(gdcmDocEntrySet *set,long offset, long l_max, bool delim_mode);
- long ParseSQ (gdcmSeqEntry *seq, long offset, long l_max, bool delim_mode);
-
+ void ParseDES(gdcmDocEntrySet *set,long offset, long l_max, bool delim_mode);
+ void ParseSQ (gdcmSeqEntry *seq, long offset, long l_max, bool delim_mode);
+
void LoadDocEntry (gdcmDocEntry *);
void FindDocEntryLength(gdcmDocEntry *) throw ( gdcmFormatError );
void FindDocEntryVR (gdcmDocEntry *);