Logo Search packages:      
Sourcecode: gdcm version File versions

gdcm::VR Class Reference

#include <gdcmVR.h>

List of all members.


Detailed Description

VR class This is adapted from DICOM standard The biggest difference is the INVALID VR and the composite one that differ from standard (more like an addition) This allow us to represent all the possible case express in the DICOMV3 dict.

Note:
VALUE REPRESENTATION (VR) Specifies the data type and format of the Value(s) contained in the Value Field of a Data Element. VALUE REPRESENTATION FIELD: The field where the Value Representation of a Data Element is stored in the encoding of a Data Element structure with explicit VR.

Definition at line 43 of file gdcmVR.h.


Public Types

enum  VRType {
  INVALID = 0, AE = 1, AS = 2, AT = 4,
  CS = 8, DA = 16, DS = 32, DT = 64,
  FD = 128, FL = 256, IS = 512, LO = 1024,
  LT = 2048, OB = 4096, OF = 8192, OW = 16384,
  PN = 32768, SH = 65536, SL = 131072, SQ = 262144,
  SS = 524288, ST = 1048576, TM = 2097152, UI = 4194304,
  UL = 8388608, UN = 16777216, US = 33554432, UT = 67108864,
  OB_OW = OB | OW, US_SS = US | SS, US_SS_OW = US | SS | OW, VL32 = OB | OW | OF | SQ | UN | UT,
  VRASCII = AE | AS | CS | DA | DS | DT | IS | LO | LT | PN | SH | ST | TM | UI | UT, VRBINARY = AT | FL | FD | OB | OF | OW | SL | SQ | SS | UL | UN | US, VR_VM1 = AS | LT | ST | UT | SQ | OF | OW | OB | UN, VRALL = VRASCII | VRBINARY,
  VR_END = UT+1
}

Public Member Functions

bool Compatible (VR const &vr) const
int GetLength () const
unsigned int GetSize () const
unsigned int GetSizeof () const
bool IsDual () const
bool IsVRFile () const
 operator VRType () const
std::istream & Read (std::istream &is)
 VR (VRType vr=INVALID)
const std::ostream & Write (std::ostream &os) const

Static Public Member Functions

static bool CanDisplay (VRType vr)
static uint32_t GetLength (VRType vr)
static const char * GetVRString (VRType vr)
static const char * GetVRStringFromFile (VRType vr)
static VRType GetVRType (const char *vr)
static VRType GetVRTypeFromFile (const char *vr)
static bool IsASCII (VRType vr)
static bool IsASCII2 (VRType vr)
static bool IsBinary (VRType vr)
static bool IsBinary2 (VRType vr)
static bool IsSwap (const char *vr)
static bool IsValid (const char *vr1, VRType vr2)
static bool IsValid (const char *vr)

Static Private Member Functions

static int GetIndex (VRType vr)

Private Attributes

VRType VRField

Friends

std::ostream & operator<< (std::ostream &os, const VR &vr)

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

Generated by  Doxygen 1.6.0   Back to index