Helper class for extracting the encapsulated document from a DICOM encapsulated storage object to file.
More...
|
|
| DcmDocumentDecapsulator () |
| | Constructor.
|
|
virtual | ~DcmDocumentDecapsulator () |
| | Destructor.
|
| void | setReadMode (E_FileReadMode mode) |
| | set the read mode for reading a DICOM file (default: ERM_autoDetect)
|
| void | setInputXferSyntax (E_TransferSyntax xfer) |
| | set the input transfer syntax for reading a DICOM file (default: EXS_Unknown)
|
| void | setExecString (const char *execString) |
| | set a command line string to be executed after the encapsulated document has been written to file
|
| void | setInputFile (const char *fname) |
| | set the filename (path) for the DICOM file to be read
|
| void | setOutputFile (const char *fname) |
| | set the filename (path) for the output file to be written
|
| OFCondition | loadDICOMFile () |
| | load the encapsulated DICOM file into memory.
|
| OFCondition | writeEncapsulatedContentToFile () |
| | extract the encapsulated document, remove a pad byte if necessary, and write the document to the output file
|
| OFCondition | executeCommand () |
| | execute the pre-defined command line, replacing the placeholder "#f" with the actual output filename.
|
|
|
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.
◆ executeCommand()
| OFCondition DcmDocumentDecapsulator::executeCommand |
( |
| ) |
|
execute the pre-defined command line, replacing the placeholder "#f" with the actual output filename.
- Returns
- EC_Normal upon success, an error code otherwise
◆ loadDICOMFile()
load the encapsulated DICOM file into memory.
- Returns
- EC_Normal upon success, an error code otherwise
◆ setExecString()
| void DcmDocumentDecapsulator::setExecString |
( |
const char * | execString | ) |
|
|
inline |
set a command line string to be executed after the encapsulated document has been written to file
- Parameters
-
| execString | command line string |
References execString_.
◆ setInputFile()
| void DcmDocumentDecapsulator::setInputFile |
( |
const char * | fname | ) |
|
|
inline |
set the filename (path) for the DICOM file to be read
- Parameters
-
References inputFname_.
◆ setInputXferSyntax()
set the input transfer syntax for reading a DICOM file (default: EXS_Unknown)
- Parameters
-
| xfer | new input transfer syntax |
References inputXfer_.
◆ setOutputFile()
| void DcmDocumentDecapsulator::setOutputFile |
( |
const char * | fname | ) |
|
|
inline |
set the filename (path) for the output file to be written
- Parameters
-
References outputFname_.
◆ setReadMode()
set the read mode for reading a DICOM file (default: ERM_autoDetect)
- Parameters
-
References readMode_.
◆ writeEncapsulatedContentToFile()
| OFCondition DcmDocumentDecapsulator::writeEncapsulatedContentToFile |
( |
| ) |
|
extract the encapsulated document, remove a pad byte if necessary, and write the document to the output file
- Returns
- EC_Normal upon success, an error code otherwise
The documentation for this class was generated from the following file:
- dcmdata/include/dcmtk/dcmdata/dcdocdec.h