-public:
-// the 2 following will be merged
- virtual void PrintPubDict (std::ostream &os = std::cout);
- virtual void PrintShaDict (std::ostream &os = std::cout);
-
-// Dictionnaries
- Dict* GetPubDict();
- Dict* GetShaDict();
- bool SetShaDict(Dict* dict);
- bool SetShaDict(DictKey const & dictName);
-
-// Informations contained in the parser
- virtual bool IsReadable();
- TransferSyntaxType GetTransferSyntax();
- bool IsJPEGLossless();
- bool IsJPEG2000();
- bool IsJPEG();
- bool IsEncapsulate();
- bool IsDicomV3();
-
- FileType GetFileType();
-
- std::ifstream * OpenFile();
- bool CloseFile();
-
- void WriteContent( std::ofstream* fp, FileType type );
-
- ValEntry* ReplaceOrCreateByNumber(std::string const & value,
- uint16_t group, uint16_t elem,
- TagName const & vr = GDCM_UNKNOWN);
-
- BinEntry* ReplaceOrCreateByNumber(uint8_t* binArea, int lgth,
- uint16_t group, uint16_t elem,
- TagName const & vr = GDCM_UNKNOWN);
-
- SeqEntry* ReplaceOrCreateByNumber(uint16_t group, uint16_t elem);
-
- bool ReplaceIfExistByNumber ( std::string const & value,
- uint16_t group, uint16_t elem );
-
- virtual void LoadEntryBinArea(uint16_t group, uint16_t elem);
- virtual void LoadEntryBinArea(BinEntry* entry);
-
- // System access (meaning endian related !?)
- uint16_t SwapShort(uint16_t); // needed by File
- uint32_t SwapLong(uint32_t); // needed by File
- uint16_t UnswapShort(uint16_t); // needed by File
- uint32_t UnswapLong(uint32_t); // needed by File
-
- 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();