- static std::string GetTransferSyntaxValue(TransferSyntaxType type);
-
-protected:
- // Constructor and destructor are protected to forbid end user
- // to instanciate from this class Document (only Header and
- // DicomDir are meaningfull).
- Document();
- Document( std::string const & filename );
- virtual ~Document();
-
- void ReadAndSkipEncapsulatedBasicOffsetTable();
- void ComputeRLEInfo();
- void ComputeJPEGFragmentInfo();
- // Entry
- bool CheckIfEntryExistByNumber(uint16_t group, uint16_t elem );
-public:
- virtual std::string GetEntryByName (TagName const & tagName);
- virtual std::string GetEntryVRByName (TagName const & tagName);
- virtual std::string GetEntryByNumber (uint16_t group, uint16_t elem);
- virtual std::string GetEntryVRByNumber(uint16_t group, uint16_t elem);
- virtual int GetEntryLengthByNumber(uint16_t group, uint16_t elem);
-//protected:
- virtual bool SetEntryByName (std::string const & content,
- TagName const & tagName );
- virtual bool SetEntryByNumber(std::string const & content,
- uint16_t group, uint16_t element);
- virtual bool SetEntryByNumber(uint8_t* content, int lgth,
- uint16_t group, uint16_t element);
- virtual void* GetEntryBinAreaByNumber(uint16_t group, uint16_t elem);
- // FIXME
- // Verify the usefull of this method... otherwise remove it
- // It's body is commented in the .xx
- //virtual bool SetEntryBinAreaByNumber(uint8_t* a, uint16_t group,
- // uint16_t elem);
-
- virtual void UpdateShaEntries();
-
- // Header entry
- DocEntry* GetDocEntryByNumber(uint16_t group, uint16_t element);
- DocEntry* GetDocEntryByName (TagName const & tagName);
-
- ValEntry* GetValEntryByNumber(uint16_t group, uint16_t element);
- //BinEntry* GetBinEntryByNumber(uint16_t group, uint16_t element);
- RLEFramesInfo* GetRLEInfo() { return RLEInfo; }
- JPEGFragmentsInfo* GetJPEGInfo() { return JPEGInfo; }
-
- void LoadDocEntrySafe(DocEntry* entry);
- TagDocEntryHT* BuildFlatHashTable();