Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a real world Information Object.
More...
Public Member Functions |
ConstIterator | Begin () const |
Iterator | Begin () |
void | Clear () |
template<typename TDE > |
unsigned int | ComputeGroupLength (Tag const &tag) const |
ConstIterator | End () const |
Iterator | End () |
bool | FindDataElement (const PrivateTag &t) const |
| Look up if private tag 't' is present in the dataset:
|
bool | FindDataElement (const Tag &t) const |
const DataElement & | FindNextDataElement (const Tag &t) const |
const DataElement & | GetDataElement (const Tag &t) const |
const DataElement & | GetDataElement (const PrivateTag &t) const |
| Return the dataelement.
|
const DataElementSet & | GetDES () const |
DataElementSet & | GetDES () |
template<typename TDE > |
VL | GetLength () const |
std::string | GetPrivateCreator (const Tag &t) const |
| Return the private creator of the private tag 't':
|
void | Insert (const DataElement &de) |
bool | IsEmpty () const |
| Returns if the dataset is empty.
|
const DataElement & | operator() (uint16_t group, uint16_t element) const |
DataSet & | operator= (DataSet const &val) |
const DataElement & | operator[] (const Tag &t) const |
void | Print (std::ostream &os, std::string const &indent="") const |
template<typename TDE , typename TSwap > |
std::istream & | Read (std::istream &is) |
template<typename TDE , typename TSwap > |
std::istream & | ReadNested (std::istream &is) |
template<typename TDE , typename TSwap > |
std::istream & | ReadSelectedTags (std::istream &is, const std::set< Tag > &tags) |
template<typename TDE , typename TSwap > |
std::istream & | ReadSelectedTagsWithLength (std::istream &is, const std::set< Tag > &tags, VL &length) |
template<typename TDE , typename TSwap > |
std::istream & | ReadUpToTag (std::istream &is, const Tag &t, std::set< Tag > const &skiptags) |
template<typename TDE , typename TSwap > |
std::istream & | ReadUpToTagWithLength (std::istream &is, const Tag &t, VL &length) |
template<typename TDE , typename TSwap > |
std::istream & | ReadWithLength (std::istream &is, VL &length) |
SizeType | Remove (const Tag &tag) |
| Completely remove a dataelement from the dataset.
|
void | Replace (const DataElement &de) |
| Replace a dataelement with another one.
|
void | ReplaceEmpty (const DataElement &de) |
| Only replace a DICOM attribute when it is missing or empty.
|
SizeType | Size () const |
template<typename TDE , typename TSwap > |
std::ostream const & | Write (std::ostream &os) const |
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a real world Information Object.
- Note:
- DATA SET: Exchanged information consisting of a structured set of Attribute values directly or indirectly related to Information Objects. The value of each Attribute in a Data Set is expressed as a Data Element. A collection of Data Elements ordered by increasing Data Element Tag number that is an encoding of the values of Attributes of a real world object.
-
Implementation note. If one do: DataSet ds; ds.SetLength(0); ds.Read(is); setting length to 0 actually means try to read is as if it was a root DataSet. Other value are undefined (nested dataset with undefined length) or defined length (different from 0) means nested dataset with defined length.
- Warning:
- a DataSet does not have a Transfer Syntax type, only a File does.
- Examples:
- ChangeSequenceUltrasound.cxx, CreateJPIPDataSet.cxx, csa2img.cxx, DiffFile.cxx, DumpADAC.cxx, DumpGEMSMovieGroup.cxx, DuplicatePCDE.cxx, ELSCINT1WaveToText.cxx, EncapsulateFileInRawData.cxx, ExtractEncryptedContent.cxx, Extracting_All_Resolution.cxx, Fake_Image_Using_Stream_Image_Writer.cxx, gdcmrtionplan.cxx, gdcmrtplan.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenLongSeqs.cxx, GenSeqs.cxx, GetJPEGSamplePrecision.cxx, GetSequenceUltrasound.cxx, GetSubSequenceData.cxx, HelloWorld.cxx, iU22tomultisc.cxx, LargeVRDSExplicit.cxx, MergeTwoFiles.cxx, MrProtocol.cxx, PatchFile.cxx, pmsct_rgb1.cxx, ReadAndDumpDICOMDIR.cxx, ReadAndPrintAttributes.cxx, ReadExplicitLengthSQIVR.cxx, ReadGEMSSDO.cxx, rle2img.cxx, SortImage.cxx, StreamImageReaderTest.cxx, and VolumeSorter.cxx.