|
DCMTK
Version 3.7.0
OFFIS DICOM Toolkit
|
Helper class for extracting the encapsulated document from a DICOM encapsulated storage object to file. More...
Public Member Functions | |
| DcmDocumentDecapsulator () | |
| Constructor. | |
| virtual | ~DcmDocumentDecapsulator () |
| Destructor. | |
| void | setReadMode (E_FileReadMode mode) |
| set the read mode for reading a DICOM file (default: ERM_autoDetect) More... | |
| void | setInputXferSyntax (E_TransferSyntax xfer) |
| set the input transfer syntax for reading a DICOM file (default: EXS_Unknown) More... | |
| void | setExecString (const char *execString) |
| set a command line string to be executed after the encapsulated document has been written to file More... | |
| void | setInputFile (const char *fname) |
| set the filename (path) for the DICOM file to be read More... | |
| void | setOutputFile (const char *fname) |
| set the filename (path) for the output file to be written More... | |
| OFCondition | loadDICOMFile () |
| load the encapsulated DICOM file into memory. More... | |
| OFCondition | writeEncapsulatedContentToFile () |
| extract the encapsulated document, remove a pad byte if necessary, and write the document to the output file More... | |
| OFCondition | executeCommand () |
| execute the pre-defined command line, replacing the placeholder "#f" with the actual output filename. More... | |
Private Attributes | |
| E_FileReadMode | readMode_ |
| input file read mode | |
| E_TransferSyntax | inputXfer_ |
| input transfer syntax | |
| const char * | execString_ |
| command line string to be executed | |
| const char * | inputFname_ |
| input filename | |
| const char * | outputFname_ |
| output filename | |
| DcmFileFormat | dicomFile_ |
| DICOM file. | |
Helper class for extracting the encapsulated document from a DICOM encapsulated storage object to file.
| OFCondition DcmDocumentDecapsulator::executeCommand | ( | ) |
execute the pre-defined command line, replacing the placeholder "#f" with the actual output filename.
| OFCondition DcmDocumentDecapsulator::loadDICOMFile | ( | ) |
load the encapsulated DICOM file into memory.
|
inline |
set a command line string to be executed after the encapsulated document has been written to file
| execString | command line string |
|
inline |
set the filename (path) for the DICOM file to be read
| fname | input file name |
|
inline |
set the input transfer syntax for reading a DICOM file (default: EXS_Unknown)
| xfer | new input transfer syntax |
|
inline |
set the filename (path) for the output file to be written
| fname | output file name |
|
inline |
set the read mode for reading a DICOM file (default: ERM_autoDetect)
| mode | new read mode |
| OFCondition DcmDocumentDecapsulator::writeEncapsulatedContentToFile | ( | ) |
extract the encapsulated document, remove a pad byte if necessary, and write the document to the output file