Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

gdcm::FileMetaInformation Class Reference

#include <gdcmFileMetaInformation.h>

Inheritance diagram for gdcm::FileMetaInformation:


List of all members.

Detailed Description

Class to represent a File Meta Information.

FileMetaInformation is a Explicit Structured Set. Whenever the file contains an ImplicitDataElement DataSet, a conversion will take place.

Definition: The File Meta Information includes identifying information on the encapsulated Data Set. This header consists of a 128 byte File Preamble, followed by a 4 byte DICOM prefix, followed by the File Meta Elements shown in Table 7.1-1. This header shall be present in every DICOM file.

See also:
Writer Reader

Definition at line 41 of file gdcmFileMetaInformation.h.

Public Types

typedef std::set< DataElementDataElementSet
typedef DataElementSet::iterator Iterator
typedef DataElementSet::size_type SizeType

Public Member Functions

Iterator Begin ()
ConstIterator Begin () const
void Clear ()
template<typename TDE>
unsigned int ComputeGroupLength (Tag const &tag) const
Iterator End ()
ConstIterator End () const
 FileMetaInformation (FileMetaInformation const &fmi)
void FillFromDataSet (DataSet const &ds)
 Construct a FileMetaInformation from an already existing DataSet:.
bool FindDataElement (const Tag &t) const
bool FindDataElement (const PrivateTag &t) const
 Look up if private tag 't' is present in the dataset:.
const DataElementFindNextDataElement (const Tag &t) const
const DataElementGetDataElement (const PrivateTag &t) const
 Return the dataelement.
const DataElementGetDataElement (const Tag &t) const
const TransferSyntaxGetDataSetTransferSyntax () const
DataElementSet & GetDES ()
const DataElementSet & GetDES () const
VL GetFullLength () const
template<typename TDE>
VL GetLength () const
MediaStorage GetMediaStorage () const
TransferSyntax::NegociatedType GetMetaInformationTS () const
PreambleGetPreamble ()
const PreambleGetPreamble () const
 Get Preamble.
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.
bool IsValid () const
const DataElementoperator() (uint16_t group, uint16_t element) const
const DataElementoperator[] (const Tag &t) const
void Print (std::ostream &os, std::string const &indent="") const
std::istream & Read (std::istream &is)
std::istream & ReadCompat (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.
void SetDataSetTransferSyntax (const TransferSyntax &ts)
void SetPreamble (const Preamble &p)
unsigned int Size () const
std::ostream & Write (std::ostream &os) const

Static Public Member Functions

static void AppendImplementationClassUID (const char *imp)
static const char * GetImplementationClassUID ()
static const char * GetImplementationVersionName ()
static const char * GetSourceApplicationEntityTitle ()
static void SetImplementationClassUID (const char *imp)
 Override the GDCM default values:.
static void SetImplementationVersionName (const char *version)
static void SetSourceApplicationEntityTitle (const char *title)

Protected Member Functions

Tag ComputeDataElement (const PrivateTag &t) const
void ComputeDataSetMediaStorageSOPClass ()
void ComputeDataSetTransferSyntax ()
void Default ()
const DataElementGetDEEnd () const
void InsertDataElement (const DataElement &de)
template<typename TSwap>
std::istream & ReadCompatInternal (std::istream &is)

Static Protected Member Functions

static const char * GetFileMetaInformationVersion ()
static const char * GetGDCMImplementationClassUID ()
static const char * GetGDCMImplementationVersionName ()
static const char * GetGDCMSourceApplicationEntityTitle ()

Protected Attributes

MediaStorage::MSType DataSetMS
TransferSyntax DataSetTS
TransferSyntax::NegociatedType MetaInformationTS

Private Attributes

Preamble P

Static Private Attributes

static const char GDCM_FILE_META_INFORMATION_VERSION [] = "\0\1"
static const char GDCM_IMPLEMENTATION_CLASS_UID [] = "1.2.826.0.1.3680043.2.1143." GDCM_VERSION
static std::string ImplementationClassUID = GetGDCMImplementationClassUID()
static std::string ImplementationVersionName = GetGDCMImplementationVersionName()
static std::string SourceApplicationEntityTitle = GetGDCMSourceApplicationEntityTitle()


std::ostream & operator<< (std::ostream &_os, const FileMetaInformation &_val)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index