Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a real world Information Object. More...
#include <gdcmDataSet.h>
Public Types | |
typedef DataElementSet::const_iterator | ConstIterator |
typedef std::set< DataElement > | DataElementSet |
typedef DataElementSet::iterator | Iterator |
typedef DataElementSet::size_type | SizeType |
Public Member Functions | |
ConstIterator | Begin () const |
Iterator | Begin () |
void | Clear () |
template<typename TDE > | |
unsigned int | ComputeGroupLength (Tag const &tag) const |
Iterator | End () |
ConstIterator | End () const |
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. | |
unsigned int | Size () const |
template<typename TDE , typename TSwap > | |
std::ostream const & | Write (std::ostream &os) const |
Protected Member Functions | |
Tag | ComputeDataElement (const PrivateTag &t) const |
const DataElement & | GetDEEnd () const |
void | InsertDataElement (const DataElement &de) |
Friends | |
class | CSAHeader |
std::ostream & | operator<< (std::ostream &_os, const DataSet &val) |
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a real world Information Object.
ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, CompressImage.cxx, csa2img.cxx, DiffFile.cxx, DuplicatePCDE.cxx, EncapsulateFileInRawData.cxx, ExtractEncryptedContent.cxx, gdcmrtionplan.cxx, gdcmrtplan.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenSeqs.cxx, GetJPEGSamplePrecision.cxx, GetSequenceUltrasound.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, MergeTwoFiles.cxx, MrProtocol.cxx, PatchFile.cxx, ReadAndDumpDICOMDIR.cxx, ReadExplicitLengthSQIVR.cxx, rle2img.cxx, SortImage.cxx, TestReader.cxx, and VolumeSorter.cxx.
typedef DataElementSet::const_iterator gdcm::DataSet::ConstIterator |
typedef std::set<DataElement> gdcm::DataSet::DataElementSet |
typedef DataElementSet::iterator gdcm::DataSet::Iterator |
typedef DataElementSet::size_type gdcm::DataSet::SizeType |
ConstIterator gdcm::DataSet::Begin | ( | ) | const [inline] |
Iterator gdcm::DataSet::Begin | ( | ) | [inline] |
void gdcm::DataSet::Clear | ( | ) | [inline] |
Referenced by gdcm::Item::Read().
Tag gdcm::DataSet::ComputeDataElement | ( | const PrivateTag & | t ) | const [protected] |
unsigned int gdcm::DataSet::ComputeGroupLength | ( | Tag const & | tag ) | const [inline] |
References gdcm::Tag::GetElement(), and gdcm::Tag::GetGroup().
Iterator gdcm::DataSet::End | ( | ) | [inline] |
ConstIterator gdcm::DataSet::End | ( | ) | const [inline] |
bool gdcm::DataSet::FindDataElement | ( | const PrivateTag & | t ) | const |
Look up if private tag 't' is present in the dataset:
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataSet().
bool gdcm::DataSet::FindDataElement | ( | const Tag & | t ) | const [inline] |
const DataElement& gdcm::DataSet::FindNextDataElement | ( | const Tag & | t ) | const [inline] |
const DataElement& gdcm::DataSet::GetDataElement | ( | const Tag & | t ) | const [inline] |
Return the DataElement with Tag 't'
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::Set(), and gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataSet().
const DataElement& gdcm::DataSet::GetDataElement | ( | const PrivateTag & | t ) | const |
Return the dataelement.
const DataElement& gdcm::DataSet::GetDEEnd | ( | ) | const [protected] |
const DataElementSet& gdcm::DataSet::GetDES | ( | ) | const [inline] |
DataElementSet& gdcm::DataSet::GetDES | ( | ) | [inline] |
VL gdcm::DataSet::GetLength | ( | ) | const [inline] |
References gdcm::VL::GetLength().
std::string gdcm::DataSet::GetPrivateCreator | ( | const Tag & | t ) | const |
Return the private creator of the private tag 't':
void gdcm::DataSet::Insert | ( | const DataElement & | de ) | [inline] |
Insert a DataElement in the DataSet.
Reimplemented in gdcm::FileMetaInformation.
References gdcmErrorMacro, gdcm::Tag::GetGroup(), and gdcm::DataElement::GetTag().
void gdcm::DataSet::InsertDataElement | ( | const DataElement & | de ) | [inline, protected] |
bool gdcm::DataSet::IsEmpty | ( | ) | const [inline] |
Returns if the dataset is empty.
Referenced by gdcm::Item::Read().
const DataElement& gdcm::DataSet::operator() | ( | uint16_t | group, |
uint16_t | element | ||
) | const [inline] |
const DataElement& gdcm::DataSet::operator[] | ( | const Tag & | t ) | const [inline] |
void gdcm::DataSet::Print | ( | std::ostream & | os, |
std::string const & | indent = "" |
||
) | const [inline] |
Referenced by gdcm::operator<<().
std::istream& gdcm::DataSet::Read | ( | std::istream & | is ) |
Reimplemented in gdcm::FileMetaInformation.
std::istream& gdcm::DataSet::ReadNested | ( | std::istream & | is ) |
std::istream& gdcm::DataSet::ReadSelectedTags | ( | std::istream & | is, |
const std::set< Tag > & | tags | ||
) |
std::istream& gdcm::DataSet::ReadSelectedTagsWithLength | ( | std::istream & | is, |
const std::set< Tag > & | tags, | ||
VL & | length | ||
) |
std::istream& gdcm::DataSet::ReadUpToTag | ( | std::istream & | is, |
const Tag & | t, | ||
std::set< Tag > const & | skiptags | ||
) |
std::istream& gdcm::DataSet::ReadUpToTagWithLength | ( | std::istream & | is, |
const Tag & | t, | ||
VL & | length | ||
) |
std::istream& gdcm::DataSet::ReadWithLength | ( | std::istream & | is, |
VL & | length | ||
) |
Completely remove a dataelement from the dataset.
void gdcm::DataSet::Replace | ( | const DataElement & | de ) | [inline] |
Replace a dataelement with another one.
Reimplemented in gdcm::FileMetaInformation.
void gdcm::DataSet::ReplaceEmpty | ( | const DataElement & | de ) | [inline] |
Only replace a DICOM attribute when it is missing or empty.
unsigned int gdcm::DataSet::Size | ( | ) | const [inline] |
std::ostream const& gdcm::DataSet::Write | ( | std::ostream & | os ) | const |
Reimplemented in gdcm::FileMetaInformation.
friend class CSAHeader [friend] |
std::ostream& operator<< | ( | std::ostream & | _os, |
const DataSet & | val | ||
) | [friend] |